Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7725F200C2B for ; Thu, 16 Feb 2017 00:30:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 75A60160B70; Wed, 15 Feb 2017 23:30:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C0353160B5E for ; Thu, 16 Feb 2017 00:30:57 +0100 (CET) Received: (qmail 90036 invoked by uid 500); 15 Feb 2017 23:30:56 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 90027 invoked by uid 99); 15 Feb 2017 23:30:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2017 23:30:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AE5A5DFC31; Wed, 15 Feb 2017 23:30:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aconway@apache.org To: commits@qpid.apache.org Message-Id: <9a7214ecc9f442c794a5c2db45f9545d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: qpid-cpp git commit: QPID-7674: Broker bulid problem with GCC 7, add version check Date: Wed, 15 Feb 2017 23:30:56 +0000 (UTC) archived-at: Wed, 15 Feb 2017 23:30:58 -0000 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 Authored: Wed Feb 15 18:29:12 2017 -0500 Committer: Alan Conway 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: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org