From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 24 Aug 2011 14:47:25 -0400 Subject: [U-Boot] gcc-4.6 warnings In-Reply-To: <3AA0E5B6-7E38-4CB0-94E2-F7BBA9A100FA@kernel.crashing.org> References: <3AA0E5B6-7E38-4CB0-94E2-F7BBA9A100FA@kernel.crashing.org> Message-ID: <201108241447.26345.vapier@gentoo.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 Wednesday, August 24, 2011 14:29:43 Kumar Gala 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? in general, i like this new warning as it tends to catch variables that are dead. i wonder why the e1000 driver has this indirection in the first place. simply calling readl() without using the return value shouldnt cause warnings or DCE ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110824/730b29df/attachment.pgp