Skip to content

Commit

Permalink
SDL_hidapi_wii.c: fix a -Wshadow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 2, 2022
1 parent b6b3fb0 commit 0c98436
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/hidapi/SDL_hidapi_wii.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0c98436

Please sign in to comment.