From 94eceb35e8f263a167d9b2cce9ed901903c913ce Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Fri, 7 Aug 2026 19:43:15 +1200 Subject: [PATCH] Enable fallthrough warnings for msvc++ --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2622a18d7c..8f62d7f847 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,7 @@ set(AppleClang_min_version 14.0.3) set(MSVC_min_version 19.32) # Standard libraries set(libstdc++_min_version 12) # This should match GCC_min_version's major version. -set(libc++_min_version 150000) # This should match Clang_min_version in the format "xxyyzz" instead of "xx.yy.zz" +set(libc++_min_version 150000) # This should match Clang_min_version in the format "xxyyzz" instead of "xx.yy.zz" dolphin_check_toolset_version("Xcode" XCODE_VERSION ${Xcode_min_version}) dolphin_check_toolset_version("MSVC Toolset" MSVC_TOOLSET_VERSION ${MSVC_toolset_min_version}) @@ -273,6 +273,7 @@ if(MSVC) # Additional warnings add_compile_options( + /w15262 # Unannotated fallthrough between switch labels /w44263 # Non-virtual member function hides base class virtual function /w44265 # Class has virtual functions, but destructor is not virtual /w44946 # Reinterpret cast between related types