From 7733377c4318c7d38f0178fb3dea3c99b847eac5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 9 Jul 2008 14:36:32 -0400 Subject: 9c: grep away Apple SetCursor/InitCursor warnings --- bin/9c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/9c') diff --git a/bin/9c b/bin/9c index c7205e20..fe6776c0 100755 --- a/bin/9c +++ b/bin/9c @@ -66,11 +66,14 @@ esac # N.B. Must use temp file to avoid pipe; pipe loses status. # The uniq at the end is for gcc's strcmp/etc. built-in nonsense, # which multiplies single errors as a result of its expansion. +# The "Cursor. is deprecated" kills off warnings from Apple +# about using SetCursor/InitCursor. (Okay, they're deprecated, +# but you could at least tell us what to use instead, Apple!) xtmp=/tmp/9c.$$.$USER.out $cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp status=$? grep -v '__p9l_autolib_' $xtmp | -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.|In file included from| from|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.|In file included from| from|use of C99 long long|ISO C forbids conversion|Cursor. is deprecated' | sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' | uniq 1>&2 rm -f $xtmp $xtmp.status -- cgit v1.2.3