[buddy] update the warning flags to match Spot's

* m4/gccwarns.m4: Add more flags taken from Spot.
Also add -Wno-long-long to suppress one warning.
This commit is contained in:
Alexandre Duret-Lutz 2017-02-01 15:01:59 +01:00
parent a2f174f721
commit 33f9e03e83

View file

@ -23,17 +23,25 @@ EOF
cf_save_CFLAGS="$CFLAGS" cf_save_CFLAGS="$CFLAGS"
ac_cv_prog_gcc_warn_flags="-W -Wall" ac_cv_prog_gcc_warn_flags="-W -Wall"
for cf_opt in \ for cf_opt in \
Wbad-function-cast \ Werror \
Wint-to-void-pointer-cast \
Wzero-as-null-pointer-constant \
Wcast-align \ Wcast-align \
Winline \
Wnested-externs \
Wpointer-arith \ Wpointer-arith \
Wwrite-strings \ Wwrite-strings \
Wcast-qual \
Wdocumentation \
Wmissing-declarations \ Wmissing-declarations \
Wmissing-prototypes \ Wnoexcept \
Wstrict-prototypes \ Woverloaded-virtual \
Wshadow \ Wmisleading-indentation \
Wcast-qual Wimplicit-fallthrough \
Wlogical-op \
Wduplicated-cond \
Wnull-dereference \
Wsuggest-override \
Wpedantic \
Wno-long-long
do do
CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_warn_flags -$cf_opt" CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_warn_flags -$cf_opt"
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then