File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wrestrict") # warn abo
4848SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Wshift-overflow=2" ) # warn about undefined shift behavior
4949SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Walloc-size-larger-than=9223372036854775807" ) # warn about allocation exceeding max object size
5050SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Wstringop-overflow" ) # warn about buffer overflow in string operations
51- SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Warith-conversion" ) # warn about implicit arithmetic conversions
51+ IF (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0" )
52+ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Warith-conversion" ) # warn about implicit arithmetic conversions (GCC 10+)
53+ ENDIF ()
5254SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Wno-cast-align" ) # disable: intentional aligned loads in SIMD code
5355SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Wno-missing-declarations" ) # disable: intentional factory pattern without declarations
5456SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Wno-shadow" ) # disable: pervasive in vector class constructors
You can’t perform that action at this time.
0 commit comments