From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: dtc: Remove gcc 4.6 "set but not used" warnings
Date: Sat, 17 Sep 2011 11:47:43 -0500 [thread overview]
Message-ID: <E1R4y3M-0000NB-0L@jdl.com> (raw)
In-Reply-To: <20110912011843.GK9025-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
> A number of the dtc testcases trigger the new "variable set but not
> used" warning from gcc 4.6. That is they have variables which are
> assigned, but then never read after that point.
>
> In a couple of cases this is just because the variables aren't needed,
> so this patch removes them. In subnode_offset.c, it's because one
> pair of variables we clearly intended to test we don't actually test.
> This patch also adds this missing check.
>
> This patch makes the testsuite compile clean with gcc 4.6.
>
> Signed-off-by: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
Applied.
jdl
prev parent reply other threads:[~2011-09-17 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 1:18 dtc: Remove gcc 4.6 "set but not used" warnings David Gibson
[not found] ` <20110912011843.GK9025-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-09-17 16:47 ` Jon Loeliger [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=E1R4y3M-0000NB-0L@jdl.com \
--to=jdl-cyomk+44s/e@public.gmane.org \
--cc=david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.