Add -Wno-misleading-indentation to CFLAGS avoid compilation failure when using GCC6

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-12-30 10:51:48 +08:00
parent 3d9462d820
commit 2eb72631bb
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/")
#set(CMAKE_VERBOSE_MAKEFILE ON) #set(CMAKE_VERBOSE_MAKEFILE ON)
add_definitions(-O -Wall -Werror --std=gnu99 -D_GNU_SOURCE) add_definitions(-O -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wno-misleading-indentation)
include_directories( include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src/ ${CMAKE_CURRENT_SOURCE_DIR}/src/