Commit 6526ee6c authored by Niels Möller's avatar Niels Möller
Browse files

For gcc-4.x, add -Wno-pointer-sign to CFLAGS.

Rev: configure.ac:1.59.2.4
parent 4837b9a1
...@@ -797,6 +797,10 @@ if test x$GCC = xyes ; then ...@@ -797,6 +797,10 @@ if test x$GCC = xyes ; then
else else
CFLAGS="$CFLAGS -ggdb3" CFLAGS="$CFLAGS -ggdb3"
fi fi
# FIXME: It would be better to actually test if this option works and/or is needed.
if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
CFLAGS="$CFLAGS -Wno-pointer-sign"
fi
CFLAGS="$CFLAGS -Wall -W \ CFLAGS="$CFLAGS -Wall -W \
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
-Wpointer-arith -Wbad-function-cast -Wnested-externs" -Wpointer-arith -Wbad-function-cast -Wnested-externs"
......
Supports Markdown
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