Now it should also work when building packages.

svn path=/trunk/; revision=444
This commit is contained in:
Martin Baulig
1998-10-11 22:47:29 +00:00
parent 273fc61231
commit 1ffd143502

View File

@ -11,13 +11,13 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
if test "x$GCC" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) warnCFLAGS="-Wall" ;;
*) warnCFLAGS="-Wall -Wno-unused" ;;
esac
## -W is not all that useful. And it cannot be controlled
## with individual -Wno-xxx flags, unlike -Wall
if test "x$enable_compile_warnings" = "xyes"; then
warnCFLAGS="$warnCFLAGS -Wno-unused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
fi
fi
fi