From 6953e494cb549bca037e1395ab65c6e612fcf5c9 Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 12 Oct 2024 21:23:58 +0200 Subject: [PATCH] fix some warnings when compiling with older sdl version --- src/sdl/i_system.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index b77832260..88ca2d0ba 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -2681,6 +2681,7 @@ void I_GamepadRumble(INT32 device_id, UINT16 low_strength, UINT16 high_strength, (void)device_id; (void)low_strength; (void)high_strength; + (void)duration; #else I_Assert(device_id > 0); // Gamepad devices are always ID 1 or higher @@ -2698,6 +2699,9 @@ void I_SetGamepadIndicatorColor(INT32 device_id, UINT8 red, UINT8 green, UINT8 b { #if !(SDL_VERSION_ATLEAST(2,0,14)) (void)device_id; + (void)red; + (void)green; + (void)blue; #else I_Assert(device_id > 0); // Gamepad devices are always ID 1 or higher