Disabled maybe-uninitialized error for AssetLib/Obj/ObjFileParser.cpp as it seems to be spurious. Also fixed error message for previous GCC build issue modification (#5593)
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>pull/5499/head^2
parent
4584719362
commit
329fee2f0b
|
@ -471,9 +471,9 @@ 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)
|
IF(((CMAKE_CXX_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
|
message(STATUS "GCC13 detected disabling \"-Warray-bounds and -Wstringop-overflow\" for"
|
||||||
AssetLib/MDL/MDLLoader.cpp as it appears to be a false positive")
|
" AssetLib/MDL/MDLLoader.cpp as it appears to be a false positive")
|
||||||
set_source_files_properties(AssetLib/MDL/MDLLoader.cpp PROPERTIES
|
set_source_files_properties(AssetLib/MDL/MDLLoader.cpp PROPERTIES
|
||||||
COMPILE_FLAGS "-Wno-array-bounds -Wno-stringop-overflow"
|
COMPILE_FLAGS "-Wno-array-bounds -Wno-stringop-overflow"
|
||||||
)
|
)
|
||||||
|
@ -511,6 +511,14 @@ ADD_ASSIMP_IMPORTER( OBJ
|
||||||
AssetLib/Obj/ObjTools.h
|
AssetLib/Obj/ObjTools.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND NOT MINGW AND NOT HAIKU) AND CMAKE_CXX_COMPILER_VERSION EQUAL 14)
|
||||||
|
message(STATUS "GCC14 detected disabling \"-Wmaybe-uninitialized\" for"
|
||||||
|
" AssetLib/Obj/ObjFileParser.cpp as it appears to be a false positive")
|
||||||
|
set_source_files_properties(AssetLib/Obj/ObjFileParser.cpp PROPERTIES
|
||||||
|
COMPILE_FLAGS "-Wno-maybe-uninitialized"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
ADD_ASSIMP_IMPORTER( OGRE
|
ADD_ASSIMP_IMPORTER( OGRE
|
||||||
AssetLib/Ogre/OgreImporter.h
|
AssetLib/Ogre/OgreImporter.h
|
||||||
AssetLib/Ogre/OgreStructs.h
|
AssetLib/Ogre/OgreStructs.h
|
||||||
|
|
Loading…
Reference in New Issue