From 46d05329624e09050a6bfa76c0dae0963d0712c9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 5 Jan 2024 17:10:41 -0800 Subject: Handle a -Wstrict-prototypes/-Wold-style-definition pair of warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tools/synclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3