Skip to content

Commit

Permalink
Fix -Wswitch warning in Mouse (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Nov 28, 2024
1 parent 62f812f commit 6e56f9a
Show file tree
Hide file tree
Showing 2 changed files with 12 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
6 changes: 6 additions & 0 deletions Src/XboxDDSTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ namespace
}
}
break;

default:
return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED);
}

return hr;
Expand Down Expand Up @@ -516,6 +519,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 6e56f9a

Please sign in to comment.