mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
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:
parent
1630ebfca4
commit
68091dcf43
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user