From 7aec0b90ee58f61a44911be305a9a4ccb559e7ab Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 13 Aug 2021 01:56:56 +0300
Subject: [PATCH] SDL_hidapi_xboxone.c: fix bogus 'uninitialized' warning from
clang.
The last 'size == 50' check is always true anyway.
---
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 259a6feee4..7cf1fbfc9e 100644
--- a/src/joystick/hidapi/SDL_hidapi_xboxone.c
+++ b/src/joystick/hidapi/SDL_hidapi_xboxone.c
@@ -558,7 +558,7 @@ HIDAPI_DriverXboxOne_HandleStatePacket(SDL_Joystick *joystick, SDL_DriverXboxOne
button4_bit = 0x08;
paddles_mapped = (data[19] != 0);
- } else if (size == 50) {
+ } else /* if (size == 50) */{
/* XBox One Elite Series 2 */
paddle_index = 22;
button1_bit = 0x01;