From 0c984360d1d6155f6f5255dffd749a80c43d17b9 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 2 Sep 2022 20:02:56 +0300 Subject: [PATCH] SDL_hidapi_wii.c: fix a -Wshadow warning --- src/joystick/hidapi/SDL_hidapi_wii.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_wii.c b/src/joystick/hidapi/SDL_hidapi_wii.c index e5988d66c..446ece2bb 100644 --- a/src/joystick/hidapi/SDL_hidapi_wii.c +++ b/src/joystick/hidapi/SDL_hidapi_wii.c @@ -1030,10 +1030,10 @@ static void HandleResponse(SDL_DriverWii_Context *ctx, SDL_Joystick *joystick) case k_eWiiCommunicationState_ExtensionIdentify3: if (type == k_eWiiInputReportIDs_ReadMemory) { - EWiiExtensionControllerType type = k_eWiiExtensionControllerType_Unknown; - if (ParseExtensionResponse(ctx, &type)) { + EWiiExtensionControllerType exctype = k_eWiiExtensionControllerType_Unknown; + if (ParseExtensionResponse(ctx, &exctype)) { ctx->m_eCommState = k_eWiiCommunicationState_None; - if (type != ctx->m_eExtensionControllerType) { + if (exctype != ctx->m_eExtensionControllerType) { /* Mark this controller as disconnected so we re-connect with a new identity */ HIDAPI_JoystickDisconnected(ctx->device, joystick->instance_id); }