[U-Boot] [RFC PATCH 18/20] sandbox: Remove unused variable warnings
Simon Glass
sjg at chromium.org
Sat Sep 17 18:48:57 CEST 2011
There are a few variables set but not used - this marks these as unused
for the compiler.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/cmd_mem.c | 2 +-
common/cmd_nvedit.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 4daa1b3..1168766 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -471,7 +471,7 @@ int do_mem_base (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int do_mem_loop (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
- ulong addr, length, i, junk;
+ ulong addr, length, i, junk __attribute__((unused));
int size;
volatile uint *longp;
volatile ushort *shortp;
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index e8b116d..cf6601d 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -460,7 +460,7 @@ int do_env_edit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
char buffer[CONFIG_SYS_CBSIZE];
char *init_val;
- int len;
+ int len __attribute((unused));
if (argc < 2)
return cmd_usage(cmdtp);
--
1.7.3.1
More information about the U-Boot
mailing list