From 6e56f9a179dc0fd79eb56a6590b336e410662190 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 27 Nov 2024 19:29:38 -0800 Subject: [PATCH] Fix -Wswitch warning in Mouse (#513) --- Src/Mouse.cpp | 6 ++++++ Src/XboxDDSTextureLoader.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Src/Mouse.cpp b/Src/Mouse.cpp index c96d130b..61f71822 100644 --- a/Src/Mouse.cpp +++ b/Src/Mouse.cpp @@ -448,6 +448,9 @@ void Mouse::ProcessMessage(UINT message, WPARAM wParam, LPARAM lParam) case XBUTTON2: pImpl->mState.xButton2 = true; break; + + default: + break; } break; @@ -461,6 +464,9 @@ void Mouse::ProcessMessage(UINT message, WPARAM wParam, LPARAM lParam) case XBUTTON2: pImpl->mState.xButton2 = false; break; + + default: + break; } break; diff --git a/Src/XboxDDSTextureLoader.cpp b/Src/XboxDDSTextureLoader.cpp index 95ceedfc..2cbdada9 100644 --- a/Src/XboxDDSTextureLoader.cpp +++ b/Src/XboxDDSTextureLoader.cpp @@ -381,6 +381,9 @@ namespace } } break; + + default: + return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); } return hr; @@ -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)