Commit 25b01536 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

configure: use -Wint-to-void-pointer-cast with clang

* m4/gccwarn.m4: Test it.
parent 20773590
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment