Temporary fix for GCC 13+ build issue -Warray-bounds (#5577)
Added cmake code to remove warnings for array-bounds and stringop-overflow specifically for MDLLoader.cpp on GCC 13 and above. Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>pull/5575/head^2
parent
fd3f092d6e
commit
6fa4f0ff5e
|
@ -471,6 +471,14 @@ ADD_ASSIMP_IMPORTER( MDL
|
||||||
AssetLib/MDL/HalfLife/UniqueNameGenerator.h
|
AssetLib/MDL/HalfLife/UniqueNameGenerator.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT MINGW AND NOT HAIKU) AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 13)
|
||||||
|
message(STATUS "GCC13 detected disabling \"-Warray-bounds and -Wstringop-overflow\" for
|
||||||
|
AssetLib/MDL/MDLLoader.cpp as it appears to be a false positive")
|
||||||
|
set_source_files_properties(AssetLib/MDL/MDLLoader.cpp PROPERTIES
|
||||||
|
COMPILE_FLAGS "-Wno-array-bounds -Wno-stringop-overflow"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
SET( MaterialSystem_SRCS
|
SET( MaterialSystem_SRCS
|
||||||
Material/MaterialSystem.cpp
|
Material/MaterialSystem.cpp
|
||||||
Material/MaterialSystem.h
|
Material/MaterialSystem.h
|
||||||
|
|
Loading…
Reference in New Issue