configure: use -Wint-to-void-pointer-cast with clang
* m4/gccwarn.m4: Test it.
This commit is contained in:
parent
207735900d
commit
25b0153633
1 changed files with 3 additions and 2 deletions
|
|
@ -25,13 +25,14 @@ EOF
|
|||
cf_save_CXXFLAGS="$CXXFLAGS"
|
||||
ac_cv_prog_gxx_warn_flags="-W -Wall"
|
||||
for cf_opt in \
|
||||
Werror \
|
||||
Wint-to-void-pointer-cast \
|
||||
Wzero-as-null-pointer-constant \
|
||||
Wcast-align \
|
||||
Wpointer-arith \
|
||||
Wwrite-strings \
|
||||
Wcast-qual \
|
||||
Wdocumentation \
|
||||
Werror
|
||||
Wdocumentation
|
||||
do
|
||||
CXXFLAGS="$cf_save_CXXFLAGS $ac_cv_prog_gxx_warn_flags -$cf_opt"
|
||||
if AC_TRY_EVAL(ac_compile); then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue