From f550dfbb347ec62ca59e86f79a9e4fe43417ab39 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 3 Jan 2024 16:37:15 -0800 Subject: Handle -Wmissing-prototypes warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xinput.c:277:6: warning: no previous prototype for ‘is_pointer’ [-Wmissing-prototypes] 277 | Bool is_pointer(int use) | ^~~~~~~~~~ xinput.c:282:6: warning: no previous prototype for ‘is_keyboard’ [-Wmissing-prototypes] 282 | Bool is_keyboard(int use) | ^~~~~~~~~~~ xinput.c:287:6: warning: no previous prototype for ‘device_matches’ [-Wmissing-prototypes] 287 | Bool device_matches(XIDeviceInfo *info, char *name) | ^~~~~~~~~~~~~~ test_xi2.c:254:1: warning: no previous prototype for ‘test_sync_grab’ [-Wmissing-prototypes] 254 | test_sync_grab(Display *display, Window win) Signed-off-by: Alan Coopersmith --- src/test_xi2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test_xi2.c') diff --git a/src/test_xi2.c b/src/test_xi2.c index 5f97258..d3d0d64 100644 --- a/src/test_xi2.c +++ b/src/test_xi2.c @@ -250,7 +250,8 @@ static void print_propertyevent(Display *display, XIPropertyEvent* event) XFree(name); } -void + +static void test_sync_grab(Display *display, Window win) { int loop = 3; -- cgit v1.2.3