[OPENGL] Disable some GCC 13 warnings

This commit is contained in:
Timo Kreuzer
2026-02-16 20:15:06 +02:00
parent d31b043fff
commit 31b1e2376a
2 changed files with 9 additions and 0 deletions

View File

@@ -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()

View File

@@ -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()