werror: Don't emit -Wmisleading-indentation warnings

GCC-6 added -Wmisleading-indentation to -Wall.  Skip these for now.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2016-11-07 14:04:55 -08:00
parent 1630ebfca4
commit 68091dcf43

View File

@ -89,9 +89,11 @@ function (upm_add_compile_flags compiler)
endfunction () endfunction ()
# Compiler flags common to both C and CXX # 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) if (WERROR)
list (APPEND C_CXX_WARNING_FLAGS -Werror) list (APPEND C_CXX_WARNING_FLAGS -Werror)
message (STATUS "Warnings as errors enabled (-Werror), disable with -DWERROR=off") message (STATUS "Warnings as errors enabled (-Werror), disable with -DWERROR=off")