Now it should also work when building packages.
svn path=/trunk/; revision=444
This commit is contained in:
@ -11,13 +11,13 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
|
|||||||
if test "x$GCC" = "xyes"; then
|
if test "x$GCC" = "xyes"; then
|
||||||
case " $CFLAGS " in
|
case " $CFLAGS " in
|
||||||
*[\ \ ]-Wall[\ \ ]*) ;;
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
||||||
*) warnCFLAGS="-Wall" ;;
|
*) warnCFLAGS="-Wall -Wno-unused" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
## -W is not all that useful. And it cannot be controlled
|
## -W is not all that useful. And it cannot be controlled
|
||||||
## with individual -Wno-xxx flags, unlike -Wall
|
## with individual -Wno-xxx flags, unlike -Wall
|
||||||
if test "x$enable_compile_warnings" = "xyes"; then
|
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
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user