From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Wed, 24 Aug 2011 23:39:00 -0500 Subject: [U-Boot] gcc-4.6 warnings In-Reply-To: <20110824190504.3FFE811F9E78@gemini.denx.de> References: <3AA0E5B6-7E38-4CB0-94E2-F7BBA9A100FA@kernel.crashing.org> <20110824190504.3FFE811F9E78@gemini.denx.de> Message-ID: <348935C0-0C2D-4A7A-8ABE-9D09E2904B26@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.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