On Fri, Nov 21, 2008 at 1:41 AM, <[EMAIL PROTECTED]> wrote: > The code is: > > extern ulong > drawld2chan[] = { > GREY1, > GREY2, > GREY4, > CMAP8, > }; > > and GCC (yes, that one!) complains about it: > > gcc -c -Wall -D_PLAN_9 -D_POSIX_SOURCE -D_PLAN9_SOURCE -I. > /sys/src/libdraw/arith.c > /sys/src/libdraw/arith.c:163: warning: `drawld2chan' initialized and > declared `extern' > > It seems a legitimate complaint, but I'm not sure how I should address > it. The idea is to make sure that this remains compatible with the > Plan 9 native compilers, of course.
Gcc has correctly diagnosed a mistake; s/extern\n// Russ