ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / minmax / _info
index 4d95336a92f73254e1660e329d76360d7a21a968..2f6437e610f2dba988d9062c7540faa2ae87a8b5 100644 (file)
  *
  * 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[])
 {
@@ -42,5 +38,11 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* We need several gcc extensions */
+               printf("tests_compile_without_features FAIL\n");
+               return 0;
+       }
+
        return 1;
 }