9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@9fans.net
Subject: [9fans] /sys/src/libdraw/arith.c:163
Date: Fri, 21 Nov 2008 11:41:34 +0200	[thread overview]
Message-ID: <4b41d6d160b1e8f95e193e2e15a713bf@proxima.alt.za> (raw)

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	other threads:[~2008-11-21  9:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  9:41 lucio [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b41d6d160b1e8f95e193e2e15a713bf@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).