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.

++L

PS: Yes, I'm trying to make some progress in bringing GCC out of the
closet.  Every time I return to this project, I need to learn a whole
lot of new things, nevermind remember all the old ones :-(


Reply via email to