From 2d2e338c7aa4cf47d50b659afef6a0c7062ea3e2 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sat, 21 Mar 2026 11:03:43 +0100 Subject: [PATCH] build: suprimir falso positivo -Wstringop-overflow en stb_image.h Co-Authored-By: Claude Sonnet 4.6 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e08c8e8..ae43e1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,9 @@ endif() file(GLOB SOURCE_FILES source/*.cpp source/external/*.cpp source/boids_mgr/*.cpp source/gpu/*.cpp source/input/*.cpp source/scene/*.cpp source/shapes/*.cpp source/shapes_mgr/*.cpp source/state/*.cpp source/themes/*.cpp source/text/*.cpp source/ui/*.cpp) list(REMOVE_ITEM SOURCE_FILES "${CMAKE_SOURCE_DIR}/source/main_old.cpp") +# Suprimir falso positivo de GCC en stb_image.h (externo) +set_source_files_properties(source/external/texture.cpp PROPERTIES COMPILE_FLAGS "-Wno-stringop-overflow") + # Comprobar si se encontraron archivos fuente if(NOT SOURCE_FILES) message(FATAL_ERROR "No se encontraron archivos fuente en el directorio 'source/'. Verifica la ruta.")