Repository: qpid-cpp Updated Branches: refs/heads/master 59fd5fd75 -> 25e73e5a4
QPID-7674: Broker bulid problem with GCC 7, add version check Only add the -Wno-implicit-fallthrough flag for GCC >= 7.0.0 Project: http://git-wip-us.apache.org/repos/asf/qpid-cpp/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-cpp/commit/25e73e5a Tree: http://git-wip-us.apache.org/repos/asf/qpid-cpp/tree/25e73e5a Diff: http://git-wip-us.apache.org/repos/asf/qpid-cpp/diff/25e73e5a Branch: refs/heads/master Commit: 25e73e5a4c33783ff3e25f24c78a3608b7c32ea6 Parents: 59fd5fd Author: Alan Conway <[email protected]> Authored: Wed Feb 15 18:29:12 2017 -0500 Committer: Alan Conway <[email protected]> Committed: Wed Feb 15 18:30:34 2017 -0500 ---------------------------------------------------------------------- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-cpp/blob/25e73e5a/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0270350..beeeac8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,7 +147,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU) # -Wunreachable-code -Wpadded -Winline # -Wshadow - warns about boost headers. set (WARNING_FLAGS - "-Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -Wno-error=deprecated-declarations -Wno-implicit-fallthrough") + "-Werror -pedantic -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -Wno-error=deprecated-declarations") + + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7) + message("FIXME FLAGGING") + set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-implicit-fallthrough") + endif() set (CATCH_UNDEFINED "-Wl,--no-undefined") # gcc on SunOS uses native linker whose "-z defs" is too fussy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
