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

Joel Stanley joel at jms.id.au
Mon Jul 20 15:54:20 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>
---
 ccan/short_types/test/run-endian.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 
-- 
2.1.4



More information about the ccan mailing list