summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-05 17:10:41 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-05 17:10:41 -0800
commit46d05329624e09050a6bfa76c0dae0963d0712c9 (patch)
treea589527873f2c636505202d9fcf8974fd5df91dc
parenta9bf2939f0a6536a792515d6fda29a7c754274c6 (diff)
Handle a -Wstrict-prototypes/-Wold-style-definition pair of warnings
synclient.c:196:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] 196 | dp_init() | ^~~~~~~ synclient.c: In function ‘dp_init’: synclient.c:196:1: warning: old-style function definition [-Wold-style-definition] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--tools/synclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/synclient.c b/tools/synclient.c
index fa56198..3bb9618 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -193,7 +193,7 @@ parse_cmd(char *cmd, struct Parameter **par)
/** Init display connection or NULL on error */
static Display *
-dp_init()
+dp_init(void)
{
Display *dpy = NULL;
XExtensionVersion *v = NULL;