From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 17 Sep 2011 20:25:12 -0400 Subject: [U-Boot] [RFC PATCH 18/20] sandbox: Remove unused variable warnings In-Reply-To: <1316278139-28635-19-git-send-email-sjg@chromium.org> References: <1316278139-28635-2-git-send-email-sjg@chromium.org> <1316278139-28635-19-git-send-email-sjg@chromium.org> Message-ID: <201109172025.14008.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 Saturday, September 17, 2011 12:48:57 Simon Glass wrote: > There are a few variables set but not used - this marks these as unused > for the compiler. summary says "sandbox:" but i dont think this has anything to do with sandbox. you're just using a newer compiler. > --- a/common/cmd_mem.c > +++ b/common/cmd_mem.c > > - ulong addr, length, i, junk; > + ulong addr, length, i, junk __attribute__((unused)); this one is tricky as we just want to read the value from the volatile pointer. i'm guessing do "*longp++;" just adds a different warning ? > --- a/common/cmd_nvedit.c > +++ b/common/cmd_nvedit.c > > - int len; > + int len __attribute((unused)); this file though looks like we should just delete "len" -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/20110917/df29ac81/attachment.pgp