]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/main_header_compiles.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / tools / ccanlint / tests / main_header_compiles.c
index 5ad2dd415a424961a8a966c5db9cab24d5064d91..1b741d4fd7c5c4b7aa0d77694023f42d4db04f35 100644 (file)
@@ -13,7 +13,7 @@
 #include <string.h>
 #include <ctype.h>
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
        if (safe_mode)
                return "Safe mode enabled";
@@ -34,7 +34,8 @@ static struct ccan_file *main_header(struct manifest *m)
 }
 
 static void check_includes_build(struct manifest *m,
-                                unsigned int *timeleft, struct score *score)
+                                unsigned int *timeleft UNNEEDED,
+                                struct score *score)
 {
        char *contents;
        char *tmpsrc, *tmpobj, *cmdout;
@@ -70,7 +71,7 @@ struct ccanlint main_header_compiles = {
        .name = "Modules main header compiles",
        .check = check_includes_build,
        .can_run = can_build,
-       .needs = "depends_exist main_header_exists"
+       .needs = "depends_exist main_header_exists info_ported"
 };
 
 REGISTER_TEST(main_header_compiles);