[ccan] [PATCH v2] short_types: Fix warning in test

Joel Stanley joel at jms.id.au
Mon Jul 20 16:01:23 AEST 2015


Our project builds the ccan tests with -Wextra, so we get warnings about
the unused variables.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
v2: Now with both the files!

 ccan/short_types/test/run-endian.c | 2 +-
 ccan/short_types/test/run.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ccan/short_types/test/run-endian.c b/ccan/short_types/test/run-endian.c
index 17508e1..108e3ab 100644
--- a/ccan/short_types/test/run-endian.c
+++ b/ccan/short_types/test/run-endian.c
@@ -4,7 +4,7 @@
 #include <stdlib.h>
 #include <err.h>
 
-int main(int argc, char *argv[])
+int main(void)
 {
 	plan_tests(6);
 
diff --git a/ccan/short_types/test/run.c b/ccan/short_types/test/run.c
index 6da3f9b..2bff4b7 100644
--- a/ccan/short_types/test/run.c
+++ b/ccan/short_types/test/run.c
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 #include <err.h>
 
-int main(int argc, char *argv[])
+int main(void)
 {
 	plan_tests(16);
 
-- 
2.1.4



More information about the ccan mailing list