URI: 
       t9c: grep away Apple SetCursor/InitCursor warnings - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 7733377c4318c7d38f0178fb3dea3c99b847eac5
   DIR parent 23b8abcc9e7681a9df2560c4535f982591764b6f
  HTML Author: Russ Cox <rsc@swtch.com>
       Date:   Wed,  9 Jul 2008 14:36:32 -0400
       
       9c: grep away Apple SetCursor/InitCursor warnings
       
       Diffstat:
         M bin/9c                              |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/bin/9c b/bin/9c
       t@@ -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