From 079e038acababc638633db4041a4a38026c7c3fd Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 9 Sep 2009 16:45:23 -0700 Subject: [PATCH] exit with non-zero status for incompatible pointer type warnings R=r DELTA=9 (7 added, 0 deleted, 2 changed) OCL=34499 CL=34499 --- src/quietgcc.bash | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/quietgcc.bash b/src/quietgcc.bash index 02a452c052..d0476f3459 100755 --- a/src/quietgcc.bash +++ b/src/quietgcc.bash @@ -40,6 +40,13 @@ $gcc -Wall -Wno-sign-compare -Wno-missing-braces \ -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment \ "$@" >$tmp 2>&1 status=$? -egrep -v "$ignore" $tmp | uniq -rm -f $tmp +egrep -v "$ignore" $tmp | uniq | tee $tmp.1 + +# Make incompatible pointer type "warnings" stop the build. +# Not quite perfect--we should remove the object file--but +# a step in the right direction. +if egrep 'incompatible pointer type' $tmp.1 >/dev/null; then + status=1 +fi +rm -f $tmp $tmp.1 exit $status -- 2.48.1