From: Russ Cox Date: Wed, 9 Sep 2009 23:45:23 +0000 (-0700) Subject: exit with non-zero status for incompatible pointer type warnings X-Git-Tag: weekly.2009-11-06~610 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=079e038acababc638633db4041a4a38026c7c3fd;p=gostls13.git exit with non-zero status for incompatible pointer type warnings R=r DELTA=9 (7 added, 0 deleted, 2 changed) OCL=34499 CL=34499 --- 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