mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
xworld: Fix set-but-unused variable warning with GCC16
Change-Id: I5e20a32d84ebc7ca56278988b8add9ee644138ba
This commit is contained in:
parent
bf0fa29a30
commit
c2344070ac
1 changed files with 4 additions and 0 deletions
|
|
@ -84,7 +84,9 @@ void res_readEntries(struct Resource* res) {
|
|||
File f;
|
||||
file_create(&f, false);
|
||||
|
||||
#ifdef XWORLD_DEBUG
|
||||
int resourceCounter = 0;
|
||||
#endif
|
||||
|
||||
if (!file_open(&f, "memlist.bin", res->_dataDir, "rb")) {
|
||||
error("Could not open 'MEMLIST.BIN', data files missing");
|
||||
|
|
@ -140,7 +142,9 @@ void res_readEntries(struct Resource* res) {
|
|||
memEntry->size,
|
||||
memEntry->size ? (memEntry->size - memEntry->packedSize) / (float)memEntry->size * 100.0f : 0.0f);
|
||||
|
||||
#ifdef XWORLD_DEBUG
|
||||
resourceCounter++;
|
||||
#endif
|
||||
|
||||
res->_numMemList++;
|
||||
memEntry++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue