summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 00:16:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 01:48:09 +0300
commit27b7d38e40938681b02c27ea75c127394a278e6e (patch)
tree891675b2bbcaa2c88611b18a583300da5b181955 /configure.in
parentf339f824f654aaae39d255466c4e34bda95594fb (diff)
downloadhercules-27b7d38e40938681b02c27ea75c127394a278e6e.tar.gz
hercules-27b7d38e40938681b02c27ea75c127394a278e6e.tar.bz2
hercules-27b7d38e40938681b02c27ea75c127394a278e6e.tar.xz
hercules-27b7d38e40938681b02c27ea75c127394a278e6e.zip
Add some usefull gcc 6 warnings.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index b308eab2d..f25c2592f 100644
--- a/configure.in
+++ b/configure.in
@@ -492,6 +492,7 @@ AC_LANG([C])
# -Wunused-parameter -Wunused-but-set-parameter unused parameters
# -Wunused-macros unused macro warnings, but it also enable unused parameters
# -Wstrict-prototypes show warning in grammar.y
+# -wdiscarded-qualifiers show different const removal
# attributes suggestion
# -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=pure
@@ -860,9 +861,12 @@ AC_CHECK_COMPILER_WFLAG(old-style-definition)
AC_CHECK_COMPILER_WFLAG(overlength-strings)
AC_CHECK_COMPILER_WFLAG(redundant-decls)
AC_CHECK_COMPILER_WFLAG(cast-qual)
+AC_CHECK_COMPILER_WFLAG(misleading-indentation)
+AC_CHECK_COMPILER_WFLAG(null-dereference)
AC_CHECK_COMPILER_WNOFLAG(format-nonliteral)
AC_CHECK_COMPILER_WNOFLAG(switch)
AC_CHECK_COMPILER_WNOFLAG(missing-field-initializers)
+AC_CHECK_COMPILER_WNOFLAG(suggest-attribute=format)
# Certain versions of gcc make -Wshadow completely useless by making it flood
# you with unnecessary warnings <https://lkml.org/lkml/2006/11/28/239>