build-pedantic: use main(void)
authorMarek Chalupa <mchqwerty@gmail.com>
Fri, 9 Jan 2015 09:34:46 +0000 (10:34 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 11 Jan 2015 21:54:12 +0000 (07:54 +1000)
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 <mchqwerty@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/build-pedantic.c

index 1dfb67d..920fc4a 100644 (file)
@@ -3,6 +3,6 @@
 /* This is a build-test only */
 
 int
-main(int argc, char **argv) {
+main(void) {
        return 0;
 }