9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /sys/src/libdraw/arith.c:163
@ 2008-11-21  9:41 lucio
  2008-11-21 10:21 ` lucio
  2008-11-22  0:54 ` Russ Cox
  0 siblings, 2 replies; 7+ messages in thread
From: lucio @ 2008-11-21  9:41 UTC (permalink / raw)
  To: 9fans

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 :-(




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-11-22  0:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-21  9:41 [9fans] /sys/src/libdraw/arith.c:163 lucio
2008-11-21 10:21 ` lucio
2008-11-21 10:27   ` Richard Miller
2008-11-21 10:49     ` lucio
2008-11-21 10:56       ` Richard Miller
2008-11-21 10:59         ` lucio
2008-11-22  0:54 ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).