From 31b1e2376ab57edebf7202bb4079f5379236dfed Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 16 Feb 2026 20:15:06 +0200 Subject: [PATCH] [OPENGL] Disable some GCC 13 warnings --- dll/opengl/glu32/CMakeLists.txt | 2 ++ dll/opengl/mesa/CMakeLists.txt | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/dll/opengl/glu32/CMakeLists.txt b/dll/opengl/glu32/CMakeLists.txt index edb9f1bf8e5..d40017a33de 100644 --- a/dll/opengl/glu32/CMakeLists.txt +++ b/dll/opengl/glu32/CMakeLists.txt @@ -123,6 +123,8 @@ set_module_type(glu32 win32dll) if(CMAKE_C_COMPILER_ID STREQUAL "GNU") target_compile_options(glu32 PRIVATE -Wno-write-strings) target_compile_options(glu32 PRIVATE -Wno-unused-but-set-variable) + target_compile_options(glu32 PRIVATE -Wno-uninitialized) + target_compile_options(glu32 PRIVATE -Wno-stringop-overflow) # Prevent a warning when comparing 'this' against 0 set_source_files_properties(src/libnurbs/internals/arc.cc PROPERTIES COMPILE_OPTIONS "-Wno-nonnull-compare") endif() diff --git a/dll/opengl/mesa/CMakeLists.txt b/dll/opengl/mesa/CMakeLists.txt index f7decf1e2cd..aa787fb3cac 100644 --- a/dll/opengl/mesa/CMakeLists.txt +++ b/dll/opengl/mesa/CMakeLists.txt @@ -68,4 +68,11 @@ list(APPEND SOURCE add_library(mesa STATIC ${SOURCE} ${mesa_asm}) add_dependencies(mesa psdk) +if(CMAKE_C_COMPILER_ID STREQUAL "GNU") + target_compile_options(mesa PRIVATE + -Wno-dangling-pointer + -Wno-array-parameter + -Wno-array-compare + ) +endif()