summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas.enge@inria.fr>2012-06-28 15:45:15 +0000
committerAndreas Enge <andreas.enge@inria.fr>2012-06-28 15:45:15 +0000
commite986168cbb25ecc116c0cad3d4af0eb4a668f4f8 (patch)
tree03cf4e03c0b1c729a74eeab022fccc0fc7813d8a
parent45d3ccf54e311efa6ccebdc7b0f97d6eba496ccb (diff)
downloadmpc-git-e986168cbb25ecc116c0cad3d4af0eb4a668f4f8.tar.gz
mpc.m4: enable -Werror for user "enge"
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1205 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--m4/mpc.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/mpc.m4 b/m4/mpc.m4
index 861bef9..414229b 100644
--- a/m4/mpc.m4
+++ b/m4/mpc.m4
@@ -91,6 +91,10 @@ AC_DEFUN([MPC_C_CHECK_WARNINGCFLAGS], [
AC_REQUIRE([AC_PROG_GREP])
if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
if test "x$GCC" = "xyes" -a "x$compiler" != "xicc" -a "x$compiler" != "xg++"; then
+ # enable -Werror for myself (Andreas Enge)
+ if test "x$USER" = "xenge"; then
+ MPC_C_CHECK_FLAG(-Werror)
+ fi
MPC_C_CHECK_FLAG(-g)
MPC_C_CHECK_FLAG(-std=c99)
MPC_C_CHECK_FLAG(-pedantic)