Filter out warn_unused_result messages rather than play nice with gcc. Fixes issue #149.

This commit is contained in:
Kris Maglione 2009-10-27 04:44:53 -04:00
parent cb8d4bc6e9
commit e42ca8806a
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ CFLAGS += \
-Wno-parentheses \
-Wno-sign-compare \
-Wno-switch \
-Wno-unused-result \
-Wpointer-arith \
-Wreturn-type \
-Wstrict-prototypes \

View File

@ -59,7 +59,7 @@ undup() { # GCC is crap.
}
cat $xtmp | sed "s,^$re,$base&,g; s,\([[:space:]]\)$re,\1$base\2,g" |
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is dangerous, better use|is almost always misused|: In function |: At top level:|support .long long.|use of C99 long long|ISO C forbids conversion' |
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is dangerous, better use|is almost always misused|: In function |: At top level:|support .long long.|use of C99 long long|ISO C forbids conversion|warning:.*warn_unused_result' |
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
awk '$1 == "warning:"{t=$2" "$1; sub(/^[^ ]+ [^ ]+ /, ""); $0 = t" "$0}; //' |
awk '{sub(/\[/, ": [", $1); print}' |