From 68091dcf4317043a09d7684cb467fe0cb4fa738d Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Mon, 7 Nov 2016 14:04:55 -0800 Subject: [PATCH] werror: Don't emit -Wmisleading-indentation warnings GCC-6 added -Wmisleading-indentation to -Wall. Skip these for now. Signed-off-by: Noel Eck --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c244a6d0..96509bce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,9 +89,11 @@ function (upm_add_compile_flags compiler) endfunction () # Compiler flags common to both C and CXX -set (C_CXX_WARNING_FLAGS -Wall) +# Enable -Wall +# GCC-6 added -Wmisleading-indentation to -Wall, skip these for now +set (C_CXX_WARNING_FLAGS -Wall -Wno-misleading-indentation) -# Errors as warnings? +# Warnings as errors? if (WERROR) list (APPEND C_CXX_WARNING_FLAGS -Werror) message (STATUS "Warnings as errors enabled (-Werror), disable with -DWERROR=off")