mirror of
https://github.com/0intro/wmii
synced 2024-11-21 21:31:33 +03:00
Filter out warn_unused_result messages rather than play nice with gcc. Fixes issue #149.
This commit is contained in:
parent
cb8d4bc6e9
commit
e42ca8806a
@ -19,7 +19,6 @@ CFLAGS += \
|
||||
-Wno-parentheses \
|
||||
-Wno-sign-compare \
|
||||
-Wno-switch \
|
||||
-Wno-unused-result \
|
||||
-Wpointer-arith \
|
||||
-Wreturn-type \
|
||||
-Wstrict-prototypes \
|
||||
|
@ -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}' |
|
||||
|
Loading…
Reference in New Issue
Block a user