From 787cd580eeefcde30026e29e842eb3e6b236087c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 8 Sep 2022 23:00:04 +0300 Subject: [PATCH] silence unused function warning for SDL_endswith() on non-linux. --- src/joystick/SDL_gamecontroller.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 1fd5f5f02..da3e64b99 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -1954,6 +1954,7 @@ SDL_IsGameController(int device_index) return SDL_FALSE; } +#if defined(__LINUX__) static SDL_bool SDL_endswith(const char *string, const char *suffix) { size_t string_length = string ? SDL_strlen(string) : 0; @@ -1966,6 +1967,7 @@ static SDL_bool SDL_endswith(const char *string, const char *suffix) } return SDL_FALSE; } +#endif /* * Return 1 if the game controller should be ignored by SDL