]> git.gag.com Git - debian/tar/commitdiff
Fix build with --enable-gcc-warnings
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 18 Mar 2016 11:08:39 +0000 (13:08 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 18 Mar 2016 11:08:39 +0000 (13:08 +0200)
* configure.ac: Disable stack-protector warnings

configure.ac

index 0ce56dcc5a832753aa5830e1af7830165a0d9686..91d98c2369dc97c8fc56794fc20e7b30cfd09866 100644 (file)
@@ -150,6 +150,7 @@ if test "$gl_gcc_warnings" = yes; then
   nw="$nw -Winline"                 # It's OK to not inline.
   nw="$nw -Wstrict-overflow"       # It's OK to optimize strictly.
   nw="$nw -Wsuggest-attribute=pure" # Too many warnings for now.
+  nw="$nw -Wstack-protector"
 
   gl_MANYWARN_ALL_GCC([ws])
   gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])
@@ -160,9 +161,10 @@ if test "$gl_gcc_warnings" = yes; then
   gl_WARN_ADD([-Wno-type-limits])      # It's OK to optimize based on types.
   gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
   gl_WARN_ADD([-Wno-format-nonliteral])
-
+  
   gl_WARN_ADD([-fdiagnostics-show-option])
   gl_WARN_ADD([-funit-at-a-time])
+  
 
   AC_SUBST([WARN_CFLAGS])