From 6ba8f547d251f91cb539c4c6fd0b22e73ae76bcd Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Fri, 9 Jan 2015 10:34:46 +0100 Subject: [PATCH] build-pedantic: use main(void) Main has unused parameters argc and argv. Since they are unused and C 99 allows to prototype main as 'int main(void)', remove them and replace by void. It fixes build when unused parameters are treated as errors. Signed-off-by: Marek Chalupa Signed-off-by: Peter Hutterer --- test/build-pedantic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/build-pedantic.c b/test/build-pedantic.c index 1dfb67d..920fc4a 100644 --- a/test/build-pedantic.c +++ b/test/build-pedantic.c @@ -3,6 +3,6 @@ /* This is a build-test only */ int -main(int argc, char **argv) { +main(void) { return 0; } -- 2.7.4