From 47a9dab8476f779de6d6f06036152fee54e9a6f5 Mon Sep 17 00:00:00 2001 From: Johannes Schmidt Date: Wed, 24 Sep 2025 10:03:55 +0200 Subject: [PATCH] Disable -Wimplicit-fallthrough for mmatch --- third-party/mmatch/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/third-party/mmatch/CMakeLists.txt b/third-party/mmatch/CMakeLists.txt index f48e0739f..4a8da1ed6 100644 --- a/third-party/mmatch/CMakeLists.txt +++ b/third-party/mmatch/CMakeLists.txt @@ -6,6 +6,13 @@ set(mmatch_SOURCES add_library(mmatch OBJECT ${mmatch_SOURCES}) +if(NOT MSVC) + target_compile_options(mmatch + PRIVATE + -Wno-implicit-fallthrough + ) +endif() + set_target_properties( mmatch PROPERTIES FOLDER Lib