[master] fa54ec5 Check if the compiler supports -Wno-address

Federico G. Schwindt fgsch at lodoss.net
Thu Mar 27 18:57:09 CET 2014


commit fa54ec5f5ce2aed29dbbce749ac637ae6180c454
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Thu Mar 27 17:54:22 2014 +0000

    Check if the compiler supports -Wno-address
    
    gcc 4.1.2 (and previous version I assume) doesn't support it.

diff --git a/configure.ac b/configure.ac
index e2a0b98..d1e203e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -483,8 +483,7 @@ DEVELOPER_CFLAGS=" \
 	-Wchar-subscripts \
 	-Wnested-externs \
 	-Wextra \
-	-Wno-sign-compare \
-	-Wno-address \
+	-Wno-sign-compare
 "
 
 # These are not compliable yet
@@ -519,6 +518,10 @@ if test "x$enable_developer_warnings" != "xno"; then
 	# compiler flags not available on gcc3
 	AX_CHECK_COMPILE_FLAG([-Wno-pointer-sign],
 		[DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -Wno-pointer-sign"], [], [])
+	# Not available in gcc 4.1.2
+	AX_CHECK_COMPILE_FLAG([-Wno-address],
+		[DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -Wno-address"])
+
 	# no known way to specifically disabling missing-field-initializers warnings
 	# keeping the rest of Wextra
 	AX_CHECK_COMPILE_FLAG([-Wno-missing-field-initializers],



More information about the varnish-commit mailing list