From 89070d10d1e0a06f6b073268f03eefb6aaa8f8b5 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 10 May 2026 01:46:29 +0500 Subject: [PATCH] fix: suppress sfinae-incomplete warning Signed-off-by: Octol1ttle (cherry picked from commit 993eb40481d0da1248f4ccfde56f5a50a3d34ddf) --- launcher/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index c2f5e70cf..375b4e589 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -1569,8 +1569,10 @@ if (CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC") target_compile_options(Launcher_logic PRIVATE /wd4100) # C4100 - unused parameter target_compile_options(${Launcher_Name} PRIVATE /wd4100) # C4100 - unused parameter else() - target_compile_options(Launcher_logic PRIVATE -Wno-unused-parameter -Wno-missing-field-initializers) - target_compile_options(${Launcher_Name} PRIVATE -Wno-unused-parameter -Wno-missing-field-initializers) + # sfinae-incomplete is a new GCC warning and triggers in Qt headers + # no-unknown-warning-option so that compilers that don't have sfinae-incomplete don't error + target_compile_options(Launcher_logic PRIVATE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-sfinae-incomplete) + target_compile_options(${Launcher_Name} PRIVATE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-sfinae-incomplete) endif() #### The bundle mess! ####