[PATCH libinput] build-pedantic: use main(void)

Marek Chalupa mchqwerty at gmail.com
Fri Jan 9 01:34:46 PST 2015


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 at gmail.com>
---
 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.2.0



More information about the wayland-devel mailing list