All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] gcc-4.6 warnings
Date: Wed, 24 Aug 2011 23:39:00 -0500	[thread overview]
Message-ID: <348935C0-0C2D-4A7A-8ABE-9D09E2904B26@kernel.crashing.org> (raw)
In-Reply-To: <20110824190504.3FFE811F9E78@gemini.denx.de>


On Aug 24, 2011, at 2:05 PM, Wolfgang Denk wrote:

> Dear Kumar Gala,
> 
> In message <3AA0E5B6-7E38-4CB0-94E2-F7BBA9A100FA@kernel.crashing.org> you wrote:
>> We get a bunch of warnings like this with gcc-4.6.x:
>> 
>> e1000.c:4334:3: warning: variable 'x' set but not used [-Wunused-but-set-variable]
>> 
>> Are we get with adding -Wunused-but-set-variable so they don't show up?
> 
> If the variable is not used, why don't we remove it, then?

In the vast number of cases it because of some #ifdef case not be defined in the given build.

- k

  reply	other threads:[~2011-08-25  4:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 18:29 [U-Boot] gcc-4.6 warnings Kumar Gala
2011-08-24 18:47 ` Mike Frysinger
2011-08-24 19:05 ` Wolfgang Denk
2011-08-25  4:39   ` Kumar Gala [this message]
2011-08-25  5:52     ` Wolfgang Denk
2011-08-25 14:27       ` Kumar Gala
2011-08-25 14:51         ` Mike Frysinger
2011-08-25 19:50           ` Tabi Timur-B04825
2011-08-25 20:27             ` Mike Frysinger
2011-08-25 21:44               ` Timur Tabi
2011-08-25 21:45                 ` Timur Tabi
2011-08-25 21:58                 ` Mike Frysinger
2011-08-25 20:39         ` Wolfgang Denk

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=348935C0-0C2D-4A7A-8ABE-9D09E2904B26@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=u-boot@lists.denx.de \
    /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.