Avoid treating `-Waddress` as errors (despite treating warnings as errors)
This warning shows up too often in tests where it is most likely wrong.
This commit is contained in:
parent
d180667293
commit
684e0b0344
|
@ -59,7 +59,7 @@ function (configure_development_warnings)
|
|||
option(TREAT_WARNINGS_AS_ERRORS "adds additional compiler flag to treat warnings as errors" "${ENABLE_DEVEL_DEFAULTS}")
|
||||
if (TREAT_WARNINGS_AS_ERRORS)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
list(APPEND COMPILE_OPTIONS_TO_CONFIGURE -Werror)
|
||||
list(APPEND COMPILE_OPTIONS_TO_CONFIGURE -Werror -Wno-error=address)
|
||||
else ()
|
||||
message(AUTHOR_WARNING "Treating warnings as errors is not supported for compiler '${CMAKE_CXX_COMPILER_ID}'.")
|
||||
endif ()
|
||||
|
|
Loading…
Reference in New Issue