ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / minmax / _info
index 1490ba437ca9a97898853616a436d9eda33fb6aa..2f6437e610f2dba988d9062c7540faa2ae87a8b5 100644 (file)
@@ -1,5 +1,6 @@
-#include <string.h>
 #include "config.h"
 #include "config.h"
+#include <stdio.h>
+#include <string.h>
 
 /**
  * minmax - typesafe minimum and maximum functions
 
 /**
  * minmax - typesafe minimum and maximum functions
  *
  * Author: David Gibson <david@gibson.dropbear.id.au>
  * License:  CC0 (Public domain)
  *
  * Author: David Gibson <david@gibson.dropbear.id.au>
  * License:  CC0 (Public domain)
- *
- * Ccanlint:
- *      // We need several gcc extensions
- *      tests_compile_without_features FAIL
  */
 int main(int argc, char *argv[])
 {
  */
 int main(int argc, char *argv[])
 {
@@ -41,5 +38,11 @@ int main(int argc, char *argv[])
                return 0;
        }
 
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* We need several gcc extensions */
+               printf("tests_compile_without_features FAIL\n");
+               return 0;
+       }
+
        return 1;
 }
        return 1;
 }