From: Marek Chalupa Date: Fri, 9 Jan 2015 09:34:46 +0000 (+0100) Subject: build-pedantic: use main(void) X-Git-Tag: 0.8.0~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ba8f547d251f91cb539c4c6fd0b22e73ae76bcd;p=platform%2Fupstream%2Flibinput.git 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 --- diff --git a/test/build-pedantic.c b/test/build-pedantic.c index 1dfb67df..920fc4ab 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; }