Add -no-error=suggest-override because xerces-c and soci have hundreds of missing overrides.

This commit is contained in:
Simon Morlat 2018-05-03 22:23:55 +02:00
parent 9d0963cfb8
commit 49d27bfaa0

View file

@ -291,7 +291,7 @@ else()
)
CHECK_CXX_COMPILER_FLAG("-Wsuggest-override" SUGGEST_OVERRIDE)
if (SUGGEST_OVERRIDE)
list(APPEND STRICT_OPTIONS_CXX "-Wsuggest-override" "-Werror=suggest-override")
list(APPEND STRICT_OPTIONS_CXX "-Wsuggest-override" "-Wno-error=suggest-override" )
endif ()
list(APPEND STRICT_OPTIONS_C "-Wstrict-prototypes" "-Werror=strict-prototypes")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")