[hackers] [wmii] Filter out warn_unused_result messages rather than play nice with gcc. Fixes issue #149. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Tue, 27 Oct 2009 08:45:04 +0000 (UTC)

changeset: 2579:b1eaa85f547b
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Tue Oct 27 04:44:53 2009 -0400
files: mk/gcc.mk util/compile
description:
Filter out warn_unused_result messages rather than play nice with gcc. Fixes issue #149.

diff -r e4e68221c0c9 -r b1eaa85f547b mk/gcc.mk
--- a/mk/gcc.mk Mon Oct 26 21:30:06 2009 -0400
+++ b/mk/gcc.mk Tue Oct 27 04:44:53 2009 -0400
@@ -19,7 +19,6 @@
         -Wno-parentheses \
         -Wno-sign-compare \
         -Wno-switch \
- -Wno-unused-result \
         -Wpointer-arith \
         -Wreturn-type \
         -Wstrict-prototypes \
diff -r e4e68221c0c9 -r b1eaa85f547b util/compile
--- a/util/compile Mon Oct 26 21:30:06 2009 -0400
+++ b/util/compile Tue Oct 27 04:44:53 2009 -0400
@@ -59,7 +59,7 @@
 }
 
 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}' |
Received on Tue Oct 27 2009 - 08:45:04 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 27 2009 - 08:48:06 UTC