From 2eb72631bb55a70a0955124eaca524ff73d74053 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 30 Dec 2017 10:51:48 +0800 Subject: [PATCH] Add -Wno-misleading-indentation to CFLAGS avoid compilation failure when using GCC6 Signed-off-by: Jianhui Zhao --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69fd549..71592db 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/") #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( ${CMAKE_CURRENT_SOURCE_DIR}/src/