build: Don't emit warnings about stack protector failures.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 23 Nov 2010 17:39:31 +0000 (17:39 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 6 Dec 2010 14:32:50 +0000 (14:32 +0000)
These are seen on gcc 4.5.1 used in Ubuntu.

configure.ac
daemon/configure.ac

index 20f0c7a..94995f1 100644 (file)
@@ -115,6 +115,8 @@ if test "$gl_gcc_warnings" = yes; then
   nw="$nw -Wpacked"                 # Allow attribute((packed)) on structs
   nw="$nw -Wlong-long"              # Allow long long since it's required
                                     # by Python, Ruby and xstrtoll.
+  nw="$nw -Wstack-protector"        # Don't warn about stack-protector
+                                    # failures (seen on Ubuntu).
 
   gl_MANYWARN_ALL_GCC([ws])
   gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])
index 2be84a8..7d817d7 100644 (file)
@@ -91,6 +91,8 @@ if test "$gl_gcc_warnings" = yes; then
                                     # was not possible, safe to ignore
   nw="$nw -Wlong-long"              # Allow long long since it's required
                                     # by Python, Ruby and xstrtoll.
+  nw="$nw -Wstack-protector"        # Don't warn about stack-protector
+                                    # failures (seen on Ubuntu).
 
   gl_MANYWARN_ALL_GCC([ws])
   gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])