Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
25b01536
Commit
25b01536
authored
Sep 30, 2015
by
Alexandre Duret-Lutz
Browse files
configure: use -Wint-to-void-pointer-cast with clang
* m4/gccwarn.m4: Test it.
parent
20773590
Changes
1
Hide whitespace changes
Inline
Side-by-side
m4/gccwarn.m4
View file @
25b01536
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment