Skip to content

Commit

Permalink
exit with non-zero status for incompatible pointer type warnings
Browse files Browse the repository at this point in the history
R=r
DELTA=9  (7 added, 0 deleted, 2 changed)
OCL=34499
CL=34499
  • Loading branch information
rsc committed Sep 9, 2009
1 parent f966ba1 commit 079e038
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/quietgcc.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 079e038

Please sign in to comment.