From c690fad9aa0dbc9d574d25e014d1dc15281b0870 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 21 Dec 2011 21:31:51 -0800 Subject: [PATCH] print_version expects no arguments, so give it none MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes Solaris Studio compiler warning: "xinput.c", line 357: warning: argument mismatch: 1 arg passed, 0 expected gcc ignored it because the function declaration didn't specify arguments. Once you specify (void) for the arguments, gcc then throws up: xinput.c: In function ‘main’: xinput.c:357:9: error: too many arguments to function ‘print_version’ xinput.c:147:1: note: declared here Signed-off-by: Alan Coopersmith Signed-off-by: Peter Hutterer --- src/xinput.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xinput.c b/src/xinput.c index 2d9a893..9460175 100644 --- a/src/xinput.c +++ b/src/xinput.c @@ -143,8 +143,8 @@ static entry drivers[] = static const char version_id[] = VERSION; -int -print_version() +static int +print_version(void) { XExtensionVersion *version; Display *display; @@ -354,7 +354,7 @@ main(int argc, char * argv[]) } if (strcmp("version", func) == 0) { - return print_version(argv[0]); + return print_version(); } if (strcmp("help", func) == 0) { -- 2.56.0