]> git.ozlabs.org Git - ccan/blobdiff - tools/configurator/configurator.c
configurator: Fix unused parameters
[ccan] / tools / configurator / configurator.c
index 370170b80c5866acf0151038e59bedcf6d39c787..67dadc61eb8a550cea7c3a86f491458a64647e81 100644 (file)
@@ -323,14 +323,14 @@ static struct test tests[] = {
          NULL, NULL,
          "#include <ucontext.h>\n"
          "static int x = 0;\n"
-         "static char stack[1024];\n"
+         "static char stack[2048];\n"
          "static ucontext_t a, b;\n"
          "static void fn(void) {\n"
          "     x |= 2;\n"
          "     setcontext(&b);\n"
          "     x |= 4;\n"
          "}\n"
-         "int main(int argc, char *argv[]) {\n"
+         "int main(void) {\n"
          "     x |= 1;\n"
          "     getcontext(&a);\n"
          "     a.uc_stack.ss_sp = stack;\n"
@@ -354,7 +354,7 @@ static struct test tests[] = {
          "             worked = 1;\n"
          "     setcontext(&b);\n"
          "}\n"
-         "int main(int argc, char *argv[]) {\n"
+         "int main(void) {\n"
          "     void *ap = &worked;\n"
          "     void *aq = (void *)(~((ptrdiff_t)ap));\n"
          "     getcontext(&a);\n"