]> git.ozlabs.org Git - ccan/blobdiff - ccan/asort/test/compile_fail-context-type.c
Mark unused arguments in many modules.
[ccan] / ccan / asort / test / compile_fail-context-type.c
index 62d16c5e1132c9530cc82a80969abccc3f9976c6..aa2340f4e22b8bf8c8e133f854889c8ef1dffc5b 100644 (file)
@@ -1,7 +1,7 @@
 #include <ccan/asort/asort.h>
 #include <ccan/asort/asort.c>
 
-static int cmp(char *const *a, char *const *b, int *flag)
+static int cmp(char *const *a UNNEEDED, char *const *b UNNEEDED, int *flag UNNEEDED)
 {
        return 0;
 }
@@ -9,9 +9,10 @@ static int cmp(char *const *a, char *const *b, int *flag)
 int main(int argc, char **argv)
 {
 #ifdef FAIL
+#if HAVE_TYPEOF && HAVE_BUILTIN_CHOOSE_EXPR && HAVE_BUILTIN_TYPES_COMPATIBLE_P
        char flag;
-#if !HAVE_TYPEOF
-#error "Unfortunately we don't fail if no typeof."
+#else
+#error "Unfortunately we don't fail if no typecheck_cb support."
 #endif
 #else
        int flag;