aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-07-09 14:36:32 -0400
committerRuss Cox <rsc@swtch.com>2008-07-09 14:36:32 -0400
commit7733377c4318c7d38f0178fb3dea3c99b847eac5 (patch)
treebb659a3e0ef5329d1c99dc01a30c4e5c9eb4f85d /bin/9c
parent23b8abcc9e7681a9df2560c4535f982591764b6f (diff)
downloadplan9port-7733377c4318c7d38f0178fb3dea3c99b847eac5.tar.gz
plan9port-7733377c4318c7d38f0178fb3dea3c99b847eac5.tar.bz2
plan9port-7733377c4318c7d38f0178fb3dea3c99b847eac5.zip
9c: grep away Apple SetCursor/InitCursor warnings
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c5
1 files changed, 4 insertions, 1 deletions
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