mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +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-parentheses \
|
||||||
-Wno-sign-compare \
|
-Wno-sign-compare \
|
||||||
-Wno-switch \
|
-Wno-switch \
|
||||||
-Wno-unused-result \
|
|
||||||
-Wpointer-arith \
|
-Wpointer-arith \
|
||||||
-Wreturn-type \
|
-Wreturn-type \
|
||||||
-Wstrict-prototypes \
|
-Wstrict-prototypes \
|
||||||
|
@ -59,7 +59,7 @@ undup() { # GCC is crap.
|
|||||||
}
|
}
|
||||||
|
|
||||||
cat $xtmp | sed "s,^$re,$base&,g; s,\([[:space:]]\)$re,\1$base\2,g" |
|
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' |
|
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 '$1 == "warning:"{t=$2" "$1; sub(/^[^ ]+ [^ ]+ /, ""); $0 = t" "$0}; //' |
|
||||||
awk '{sub(/\[/, ": [", $1); print}' |
|
awk '{sub(/\[/, ": [", $1); print}' |
|
||||||
|
Loading…
Reference in New Issue
Block a user