summaryrefslogtreecommitdiff
path: root/apps/plugins/iriver_flash.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-13 14:43:29 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-13 15:48:31 -0400
commitb94db707fb7a8ace5c8821ea47d85ec48ca48e26 (patch)
tree9b0128bd96c8765a8e7abdbe9062e6bcd397da69 /apps/plugins/iriver_flash.c
parent431caa4311c13a0937ae60ac225e780c0a0670b9 (diff)
downloadrockbox-b94db707fb7a8ace5c8821ea47d85ec48ca48e26.tar.gz
rockbox-b94db707fb7a8ace5c8821ea47d85ec48ca48e26.zip
Fix more warnings.
Change-Id: Ib3a9fc622a46b1fc72e94dcbc6d29d2e430cd81b
Diffstat (limited to 'apps/plugins/iriver_flash.c')
-rw-r--r--apps/plugins/iriver_flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c
index 2e27a9f748..562a680a60 100644
--- a/apps/plugins/iriver_flash.c
+++ b/apps/plugins/iriver_flash.c
@@ -334,7 +334,7 @@ static int get_section_address(int section)
334int flash_rockbox(const char *filename, int section) 334int flash_rockbox(const char *filename, int section)
335{ 335{
336 struct flash_header hdr; 336 struct flash_header hdr;
337 int pos, i, len, rc; 337 int pos, i, len/*, rc */;
338 unsigned long checksum, sum; 338 unsigned long checksum, sum;
339 unsigned char *p8; 339 unsigned char *p8;
340 uint16_t *p16; 340 uint16_t *p16;
@@ -390,7 +390,7 @@ int flash_rockbox(const char *filename, int section)
390 rb->lcd_putsf(0, 3, "Erasing... %d%%", (i+SEC_SIZE)*100/len); 390 rb->lcd_putsf(0, 3, "Erasing... %d%%", (i+SEC_SIZE)*100/len);
391 rb->lcd_update(); 391 rb->lcd_update();
392 392
393 rc = cfi_erase_sector(FB + (i + pos)/2); 393 /*rc = */cfi_erase_sector(FB + (i + pos)/2);
394 } 394 }
395 395
396 /* Write the magic and size. */ 396 /* Write the magic and size. */