From 2f3643f09c3f444461cccabb2903a96a53bc9afd Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 28 Apr 2026 09:38:52 +0200 Subject: [PATCH] build: silencia warnings de stb a source/external/ via set_source_files_properties --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ac0f68..5114098 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -166,6 +166,15 @@ endif() add_executable(${PROJECT_NAME} ${APP_SOURCES}) +# Silencia warnings de codi de tercers (mateixa filosofia que el +# .clang-tidy de source/external/). Només afecta aquests TUs concrets; +# la resta del codi continua compilant amb -Wall -Wextra -Wpedantic. +set_source_files_properties( + source/external/stb_image_write_impl.cpp + source/external/stb_vorbis_impl.cpp + PROPERTIES COMPILE_OPTIONS "-Wno-missing-field-initializers" +) + if(NOT APPLE AND GLSLC_EXE) add_dependencies(${PROJECT_NAME} shaders) endif()