There are a few variables set but not used - this marks these as unused
for the compiler.

Signed-off-by: Simon Glass <s...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to