You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2011/06/07 21:32:02 UTC

svn commit: r1133137 - /qpid/trunk/qpid/cpp/configure.ac

Author: astitcher
Date: Tue Jun  7 19:32:01 2011
New Revision: 1133137

URL: http://svn.apache.org/viewvc?rev=1133137&view=rev
Log:
QPID-3295: Autoconf incorrectly detects gcc doesn't support -Werror

Modified:
    qpid/trunk/qpid/cpp/configure.ac

Modified: qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/configure.ac?rev=1133137&r1=1133136&r2=1133137&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/configure.ac (original)
+++ qpid/trunk/qpid/cpp/configure.ac Tue Jun  7 19:32:01 2011
@@ -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)



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org