Disable misleading indent warnings in gcc 6+

This commit is contained in:
Dmitri Tikhonov 2018-05-04 15:32:16 +00:00
parent 818790ed77
commit 802800341c

View file

@ -37,6 +37,12 @@ SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -fno-omit-frame-pointer")
IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.3) IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9.3)
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wno-missing-field-initializers") SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wno-missing-field-initializers")
ENDIF() ENDIF()
IF(CMAKE_COMPILER_IS_GNUCC AND (
CMAKE_C_COMPILER_VERSION VERSION_EQUAL 6.0.0
OR
CMAKE_C_COMPILER_VERSION VERSION_GREATER 6))
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wno-misleading-indentation")
ENDIF()
IF(DEVEL_MODE EQUAL 1) IF(DEVEL_MODE EQUAL 1)
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -O0 -g3") SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -O0 -g3")
# -Werror is used to force us to fix warnings early. # -Werror is used to force us to fix warnings early.