Fix indentation: this is a better way to address new gcc warnings

This commit is contained in:
Dmitri Tikhonov 2018-05-07 14:30:52 -04:00
parent 3b55db2dfb
commit 2a5cd80e91
6 changed files with 30 additions and 36 deletions

View file

@ -37,12 +37,6 @@ 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)
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wno-missing-field-initializers")
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)
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -O0 -g3")
IF(CMAKE_C_COMPILER MATCHES "clang" AND