[buddy] add -Wno-gnu if supported

* m4/gccwarns.m4: Add -Wno-gnu to workaround a diagnostic from
clang 3.9.1 on arch Linux.  clang was complaining whtat assert()
is using a GNU extension.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-14 12:03:10 +01:00
parent e851e0f8c0
commit 63776d9c93

View file

@ -41,6 +41,7 @@ EOF
Wnull-dereference \ Wnull-dereference \
Wsuggest-override \ Wsuggest-override \
Wpedantic \ Wpedantic \
Wno-gnu \
Wno-long-long 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"