cmd_mem.c: In function ‘do_mem_loop’:
cmd_mem.c:474:25: warning: variable ‘junk’ set but not used
[-Wunused-but-set-variable]
The assigned variable can be removed because the pointers are volatile so
accesses to their addresses are always generated.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
int do_mem_loop (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;
int size;
volatile uint *longp;
volatile ushort *shortp;
int size;
volatile uint *longp;
volatile ushort *shortp;
longp = (uint *)addr;
i = length;
while (i-- > 0)
longp = (uint *)addr;
i = length;
while (i-- > 0)
shortp = (ushort *)addr;
i = length;
while (i-- > 0)
shortp = (ushort *)addr;
i = length;
while (i-- > 0)
}
}
for (;;) {
cp = (u_char *)addr;
i = length;
while (i-- > 0)
}
}
for (;;) {
cp = (u_char *)addr;
i = length;
while (i-- > 0)