summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-06-07 19:32:01 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-06-07 19:32:01 +0000
commit9e3fb797e5c9e413ed1d9744af886cdcb5558bfb (patch)
tree7f9168abc753b44eff97acb5f80fcda102cc5701 /cpp
parent952eb377360152ab90c30edeb92633753b8e72de (diff)
downloadqpid-python-9e3fb797e5c9e413ed1d9744af886cdcb5558bfb.tar.gz
QPID-3295: Autoconf incorrectly detects gcc doesn't support -Werror
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133137 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac
index 43a32d3ad7..092694d56b 100644
--- a/cpp/configure.ac
+++ b/cpp/configure.ac
@@ -68,8 +68,10 @@ if test x$GXX = xyes; then
# The following warnings are deliberately omitted, they warn on valid code.
# -Wunreachable-code -Wpadded -Winline
# -Wshadow - warns about boost headers.
+ # Can't test for -Werror as whether it fails or not depends on what's in
+ # CFLAGS/CXXFLAGS. In any case it's been in gcc for a long time (since 2.95 at least)
if test "${enableval}" = yes; then
- gl_COMPILER_FLAGS(-Werror)
+ COMPILER_FLAGS="-Werror"
gl_COMPILER_FLAGS(-pedantic)
gl_COMPILER_FLAGS(-Wall)
gl_COMPILER_FLAGS(-Wextra)