compiler: RETURNS_NONNULL macro
[ccan] / ccan / typesafe_cb / test / compile_fail-typesafe_cb_cast-multi.c
index d7d481cb60e42af5b816624012147947d511d519..d85886c929f470ebad95f3400391424dc112c70c 100644 (file)
@@ -23,13 +23,14 @@ struct other {
 
 static void take_any(struct any *any)
 {
+       (void)any;
 }
 
-int main(int argc, char *argv[])
+int main(void)
 {
 #ifdef FAIL
        struct other
-#if !HAVE_TYPEOF || !HAVE_CAST_TO_UNION
+#if !HAVE_TYPEOF||!HAVE_BUILTIN_CHOOSE_EXPR||!HAVE_BUILTIN_TYPES_COMPATIBLE_P
 #error "Unfortunately we don't fail if typesafe_cb_cast is a noop."
 #endif
 #else