From 22518f0936f04423803d8c78370da7393c204fe3 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 23 Feb 2026 19:20:55 -0800 Subject: [PATCH] Suppress third-party header warnings and Vulkan struct init noise - Add -Wno-missing-field-initializers for GCC (Vulkan designated initializer patterns in valid C++20 trigger this) - Mark extern/ and vk-bootstrap as SYSTEM includes to suppress warnings from vendored headers (VMA, stb, miniaudio, nlohmann) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6a9e2f7..ecfc7c1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -469,6 +469,9 @@ endif() target_include_directories(wowee PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/src +) +# Vendored headers as SYSTEM to suppress third-party warnings +target_include_directories(wowee SYSTEM PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/extern ${CMAKE_CURRENT_SOURCE_DIR}/extern/vk-bootstrap/src ) @@ -543,7 +546,7 @@ endif() if(MSVC) target_compile_options(wowee PRIVATE /W4) else() - target_compile_options(wowee PRIVATE -Wall -Wextra -Wpedantic) + target_compile_options(wowee PRIVATE -Wall -Wextra -Wpedantic -Wno-missing-field-initializers) endif() # Debug build flags