]> diplodocus.org Git - xorg-xinput/commitdiff
print_version expects no arguments, so give it none
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 22 Dec 2011 05:31:51 +0000 (21:31 -0800)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 22 Dec 2011 05:37:29 +0000 (15:37 +1000)
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 <alan.coopersmith@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

No differences found