Skip to content

Commit

Permalink
Fix -Wswitch warning in Mouse (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Nov 28, 2024
1 parent 6be09ef commit ccd7ac7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Src/Mouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ void Mouse::ProcessMessage(UINT message, WPARAM wParam, LPARAM lParam)
case XBUTTON2:
pImpl->mState.xButton2 = true;
break;

default:
break;
}
break;

Expand All @@ -461,6 +464,9 @@ void Mouse::ProcessMessage(UINT message, WPARAM wParam, LPARAM lParam)
case XBUTTON2:
pImpl->mState.xButton2 = false;
break;

default:
break;
}
break;

Expand Down
3 changes: 3 additions & 0 deletions Src/XboxDDSTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ namespace
return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED);
}
break;

default:
return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED);
}

if (xboxext->dxgiFormat == DXGI_FORMAT_UNKNOWN)
Expand Down

0 comments on commit ccd7ac7

Please sign in to comment.