File 0001-QPID-7714-Suppress-very-verbose-warnings.patch of Package qpid-cpp
From 874ecfaa2c168e211ee1f250d880e9d06cbad8ef Mon Sep 17 00:00:00 2001
From: Justin Ross <jross@apache.org>
Date: Wed, 22 Mar 2017 05:41:08 -0700
Subject: [PATCH] QPID-7714: Suppress very verbose warnings
---
CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: qpid-cpp-1.36.0/CMakeLists.txt
===================================================================
--- qpid-cpp-1.36.0.orig/CMakeLists.txt
+++ qpid-cpp-1.36.0/CMakeLists.txt
@@ -142,7 +142,7 @@ 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")
+ "-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-deprecated-declarations")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7)
message("FIXME FLAGGING")
@@ -154,7 +154,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set (CATCH_UNDEFINED "")
endif (CMAKE_SYSTEM_NAME STREQUAL SunOS)
set (NOSTRICT_ALIASING "-fno-strict-aliasing")
- set (COMPILER_FLAGS "-fvisibility-inlines-hidden")
+ set (COMPILER_FLAGS "-fvisibility-inlines-hidden -std=gnu++03")
# gcc 4.1.2 on RHEL 5 needs -Wno-attributes to avoid an error that's fixed
# in later gcc versions.
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion