From efdc92802fa800f8b4655c347ac2a3028b83917d Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 18 Feb 2023 04:48:24 +0100
Subject: [PATCH] Fix -Wunused-function warning when configuring with
-DSDL_X11_XINPUT2=OFF
---
src/video/x11/SDL_x11xinput2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/x11/SDL_x11xinput2.c b/src/video/x11/SDL_x11xinput2.c
index 80f5c60da579..6396be39ceec 100644
--- a/src/video/x11/SDL_x11xinput2.c
+++ b/src/video/x11/SDL_x11xinput2.c
@@ -181,6 +181,7 @@ void X11_InitXinput2(_THIS)
#endif
}
+#if SDL_VIDEO_DRIVER_X11_XINPUT2
/* xi2 device went away? take it out of the list. */
static void xinput2_remove_device_info(SDL_VideoData *videodata, const int device_id)
{
@@ -202,7 +203,6 @@ static void xinput2_remove_device_info(SDL_VideoData *videodata, const int devic
}
}
-#if SDL_VIDEO_DRIVER_X11_XINPUT2
static SDL_XInput2DeviceInfo *xinput2_get_device_info(SDL_VideoData *videodata, const int device_id)
{
/* cache device info as we see new devices. */