]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
configure: enable the type-limits gcc warnings
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 31 May 2016 08:00:18 +0000 (10:00 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 31 May 2016 11:55:57 +0000 (13:55 +0200)
In addition remove the unsafe-loop-optimizations warning
as they were not helpful.

configure.ac

index beef3ca719d42a0608886cdb41f96a6f3c8b1e0d..f108571d8153ebf10f46f8997699003063b68b55 100644 (file)
@@ -333,6 +333,7 @@ AC_ARG_ENABLE([gcc-warnings],
 
 if test "$gl_gcc_warnings" = yes; then
   gl_WARN_ADD([-Wframe-larger-than=4096], [WSTACK_CFLAGS])
+  gl_WARN_ADD([-Wtype-limits], [WSTACK_CFLAGS])
 
   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
   nw="$nw -Wc++-compat"             # We don't care about C++ compilers
@@ -353,6 +354,7 @@ if test "$gl_gcc_warnings" = yes; then
   nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
   nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
   nw="$nw -Wstack-protector"        # Some functions cannot be protected
+  nw="$nw -Wunsafe-loop-optimizations" # Warnings with no point
   nw="$nw -Wredundant-decls"        # Some files cannot be compiled with that (gl_fd_to_handle)
 
   gl_MANYWARN_ALL_GCC([ws])