mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[OPENGL] Disable some GCC 13 warnings
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user