summaryrefslogtreecommitdiff
path: root/test/build-pedantic.c
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2015-01-09 10:34:46 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2015-01-12 07:54:12 +1000
commit6ba8f547d251f91cb539c4c6fd0b22e73ae76bcd (patch)
tree89bdfe813383fd27b8f47b342947f856cf10865f /test/build-pedantic.c
parentfe8e6706bd847ddfe43337d544f88318ec63946d (diff)
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 <mchqwerty@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/build-pedantic.c')
-rw-r--r--test/build-pedantic.c2
1 files changed, 1 insertions, 1 deletions
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;
}