summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-17 10:17:04 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-17 10:17:49 +0100
commit8b7638a1e3994d5d6ddcb702cf2aae1b958c43b1 (patch)
tree3acde5ca7888226cec6af4d6cd35d08aa9afcc9e
parent713df5857fbb8b22dc5b32b5a052eca0fc115200 (diff)
downloadgnutls-8b7638a1e3994d5d6ddcb702cf2aae1b958c43b1.tar.gz
more gcc warnings to ignore
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1633e01e40..dd57ec4d51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -237,11 +237,18 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wconversion" # Too many warnings for now
nw="$nw -Wsign-conversion" # Too many warnings for now
nw="$nw -Wformat-y2k" # Too many warnings for now
+ nw="$nw -Woverlength-strings" # We use some in tests/
nw="$nw -Wvla" # There is no point to avoid C99 variable length arrays
nw="$nw -Wformat-nonliteral" # Incompatible with gettext _()
nw="$nw -Wunsafe-loop-optimizations"
nw="$nw -Wstrict-overflow"
nw="$nw -Wmissing-noreturn"
+ nw="$nw -Winline" # Too compiler dependent
+ nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
+ 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 -Wredundant-decls" # Some files cannot be compiled with that (gl_fd_to_handle)
gl_MANYWARN_ALL_GCC([ws])
gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw])