From 2a90f4e244ebfe7e041fce36505b1f4105f32776 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 26 Nov 2024 19:34:27 -0800 Subject: [PATCH 1/2] Fix -Wswitch warning in Mouse --- Src/Mouse.cpp | 6 ++++++ 1 file changed, 6 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; From 58f10ed4a246a14facdfba6f58a27462418266be Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 26 Nov 2024 19:39:43 -0800 Subject: [PATCH 2/2] Fix more -Wswitch --- Src/XboxDDSTextureLoader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)