From c9f672fde4e16b31a3073ea68f59a2290022a177 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 23 Jan 2020 22:24:24 -0800 Subject: [PATCH] Fixed compiler warnings --- src/joystick/hidapi/SDL_hidapi_xboxone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_xboxone.c b/src/joystick/hidapi/SDL_hidapi_xboxone.c index 656034c4ca307..ce6ee6f5c7c3a 100644 --- a/src/joystick/hidapi/SDL_hidapi_xboxone.c +++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c @@ -450,7 +450,7 @@ HIDAPI_DriverXboxOne_HandleStatePacket(SDL_Joystick *joystick, hid_device *dev, /* The mapped controller state is at offset 4, the raw state is at offset 18, compare them to see if the paddles are mapped */ paddles_mapped = (SDL_memcmp(&data[4], &data[18], 14) != 0); - } else if (size == 38) { + } else /* if (size == 38) */ { /* XBox One Elite Series 2 */ paddle_index = 18; button1_bit = 0x04;