mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-16 15:36:22 -04:00
board/mcc200/auto_update.c: fixx GCC 4.6 build warnings
Fix: auto_update.c: In function 'do_auto_update': auto_update.c:344:48: warning: variable 'got_ctrlc' set but not used [-Wunused-but-set-variable] auto_update.c:344:18: warning: variable 'bitmap_first' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
a442173048
commit
55b97886f8
@ -341,7 +341,7 @@ int do_auto_update(void)
|
|||||||
{
|
{
|
||||||
block_dev_desc_t *stor_dev;
|
block_dev_desc_t *stor_dev;
|
||||||
long sz;
|
long sz;
|
||||||
int i, res = 0, bitmap_first, cnt, old_ctrlc, got_ctrlc;
|
int i, res = 0, cnt, old_ctrlc;
|
||||||
char *env;
|
char *env;
|
||||||
long start, end;
|
long start, end;
|
||||||
|
|
||||||
@ -450,8 +450,6 @@ int do_auto_update(void)
|
|||||||
/* make sure that we see CTRL-C and save the old state */
|
/* make sure that we see CTRL-C and save the old state */
|
||||||
old_ctrlc = disable_ctrlc(0);
|
old_ctrlc = disable_ctrlc(0);
|
||||||
|
|
||||||
bitmap_first = 0;
|
|
||||||
|
|
||||||
/* validate the images first */
|
/* validate the images first */
|
||||||
for (i = 0; i < AU_MAXFILES; i++) {
|
for (i = 0; i < AU_MAXFILES; i++) {
|
||||||
ulong imsize;
|
ulong imsize;
|
||||||
@ -506,14 +504,11 @@ int do_auto_update(void)
|
|||||||
/* this is really not a good idea, but it's what the */
|
/* this is really not a good idea, but it's what the */
|
||||||
/* customer wants. */
|
/* customer wants. */
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
got_ctrlc = 0;
|
|
||||||
do {
|
do {
|
||||||
res = au_do_update(i, sz);
|
res = au_do_update(i, sz);
|
||||||
/* let the user break out of the loop */
|
/* let the user break out of the loop */
|
||||||
if (ctrlc() || had_ctrlc()) {
|
if (ctrlc() || had_ctrlc()) {
|
||||||
clear_ctrlc();
|
clear_ctrlc();
|
||||||
if (res < 0)
|
|
||||||
got_ctrlc = 1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cnt++;
|
cnt++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user