diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-19 22:04:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-19 22:04:51 +0300 |
commit | b7f772294594c40ef1e18f9c044e5c4fe6b490f4 (patch) | |
tree | 4740ae636d410980f379cc4bb3a969b49451c7c7 /configure.in | |
parent | 9bd03cf313038f9221a9661973ebf29ef6d4654c (diff) | |
download | hercules-b7f772294594c40ef1e18f9c044e5c4fe6b490f4.tar.gz hercules-b7f772294594c40ef1e18f9c044e5c4fe6b490f4.tar.bz2 hercules-b7f772294594c40ef1e18f9c044e5c4fe6b490f4.tar.xz hercules-b7f772294594c40ef1e18f9c044e5c4fe6b490f4.zip |
Add to configure some flags what for now not create any warnings.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/configure.in b/configure.in index da52bc286..4729c095e 100644 --- a/configure.in +++ b/configure.in @@ -465,16 +465,14 @@ AC_LANG([C]) # -Wunsafe-loop-optimizations possible optimisation issues # -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 # attributes suggestion # -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=pure -# flags what can be used but now return no warnings: -Warray-bounds -Wbool-compare -Wcast-align -# -Wchar-subscripts -Wchkp -Wclobbered -Wcomment -Wdisabled-optimization -Wempty-body -# -Werror-implicit-function-declaration -Wignored-qualifiers -Wtrampolines -Wtype-limits -# -Wjump-misses-init -Wlogical-op -Wmissing-field-initializers -Wmissing-parameter-type -# -Wnested-externs -Wold-style-declaration -Wold-style-definition -Woverlength-strings -Woverride-init -# -Wredundant-decls -Wstack-protector -Wstrict-prototypes -Wundef -# -Winit-self -Wpointer-arith -Wswitch-bool +# flags what can be used but now return no warnings: +# -Wchkp -Wdisabled-optimization +# -Werror-implicit-function-declaration -Wtrampolines +# -Wjump-misses-init CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wextra -Wno-sign-compare" CPPFLAGS="$CPPFLAGS -I../common" @@ -814,6 +812,9 @@ AC_CHECK_COMPILER_WNOFLAG(clobbered) AC_CHECK_COMPILER_WFLAG(empty-body) AC_CHECK_COMPILER_WFLAG(newline-eof) AC_CHECK_COMPILER_WFLAG(int-conversion) +AC_CHECK_COMPILER_WFLAG(init-self) +AC_CHECK_COMPILER_WFLAG(pointer-arith) +AC_CHECK_COMPILER_WFLAG(switch-bool) AC_CHECK_COMPILER_WFLAG(enum-conversion) AC_CHECK_COMPILER_WFLAG(shorten-64-to-32) AC_CHECK_COMPILER_WFLAG(constant-conversion) @@ -824,6 +825,13 @@ AC_CHECK_COMPILER_WFLAG(format-signedness) AC_CHECK_COMPILER_WFLAG(format-y2k) AC_CHECK_COMPILER_WFLAG(missing-include-dirs) AC_CHECK_COMPILER_WFLAG(suggest-attribute=noreturn) +AC_CHECK_COMPILER_WFLAG(undef) +AC_CHECK_COMPILER_WFLAG(cast-align) +AC_CHECK_COMPILER_WFLAG(logical-op) +AC_CHECK_COMPILER_WFLAG(nested-externs) +AC_CHECK_COMPILER_WFLAG(old-style-definition) +AC_CHECK_COMPILER_WFLAG(overlength-strings) +AC_CHECK_COMPILER_WFLAG(redundant-decls) AC_CHECK_COMPILER_WNOFLAG(format-nonliteral) AC_CHECK_COMPILER_WNOFLAG(switch) AC_CHECK_COMPILER_WNOFLAG(missing-field-initializers) |