linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: Dan Carpenter <error27@gmail.com>
Cc: linux-sparse@vger.kernel.org
Subject: Re: "advancing past deep designator" warnings
Date: Mon, 30 May 2011 09:45:32 -0700	[thread overview]
Message-ID: <20110530094532.5a4dc8c4.rdunlap@xenotime.net> (raw)
In-Reply-To: <20110530062141.GH3099@shale.localdomain>

On Mon, 30 May 2011 09:21:41 +0300 Dan Carpenter wrote:

> On Sun, May 29, 2011 at 02:57:12PM -0700, Randy Dunlap wrote:
> > Hi,
> > 
> > Can you give me an idea about what this warning means and what to do about it?
> > Thanks.
> >
> 
> It means that you have an array declared like:
> 	int x[] = {
> 		[4] = 5,  <-- designator.
> 		6         <-- advance one step.
> 	};
> 
> GCC handles these correctly, so I don't think we'd want to change
> anything in the kernel because of them.

Hi Dan,
Thanks for the explanation.  I'll just ignore these warnings.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

      reply	other threads:[~2011-05-30 16:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29 21:57 "advancing past deep designator" warnings Randy Dunlap
2011-05-30  6:21 ` Dan Carpenter
2011-05-30 16:45   ` Randy Dunlap [this message]

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=20110530094532.5a4dc8c4.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=error27@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    /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).