summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-12-08 11:04:03 +1030
committerRusty Russell <rusty@rustcorp.com.au>2010-12-08 11:04:03 +1030
commitc102d5ecffeda1b43afae0e994e42829b92baf61 (patch)
treea5361d0c91a37bf79074aa28be06a2e4ec330957
parent8f2bfcd370a0e00605a7d84600847b150255c533 (diff)
ccanlint: fix compile on x86-64
cc -g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -I. -MD -Werror -c -o tools/ccanlint/tests/examples_run.o tools/ccanlint/tests/examples_run.c cc1: warnings being treated as errors tools/ccanlint/tests/examples_run.c: In function ‘scan_forv’: tools/ccanlint/tests/examples_run.c:37: warning: passing argument 2 of ‘__builtin_va_copy’ discards qualifiers from pointer target type tools/ccanlint/tests/examples_run.c:43: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type tools/ccanlint/tests/examples_run.c:52: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type tools/ccanlint/tests/examples_run.c:60: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type tools/ccanlint/tests/examples_run.c: In function ‘scan_for’: tools/ccanlint/tests/examples_run.c:78: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type make: *** [tools/ccanlint/tests/examples_run.o] Error 1 It really doesn't like constifying a va_arg, so remove the const declaration.
-rw-r--r--tools/ccanlint/tests/examples_run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ccanlint/tests/examples_run.c b/tools/ccanlint/tests/examples_run.c
index 3cb456d4..103e1798 100644
--- a/tools/ccanlint/tests/examples_run.c
+++ b/tools/ccanlint/tests/examples_run.c
@@ -26,7 +26,7 @@ static const char *can_run(struct manifest *m)
/* Very dumb scanner, allocates %s-strings. */
static bool scan_forv(const void *ctx,
- const char *input, const char *fmt, const va_list *args)
+ const char *input, const char *fmt, va_list *args)
{
va_list ap;
bool ret;