forked from len0rd/rockbox
Move the "warning suppression" down, so it comes after the last write to "remote", to ensure better warning avoidance
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30237 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bd3056cb38
commit
038a608bb7
1 changed files with 6 additions and 5 deletions
|
|
@ -495,11 +495,6 @@ int read_bmp_fd(int fd,
|
|||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
bool remote = false;
|
||||
/* Thanks to the mass of #ifdefs in this function, there are cases where
|
||||
* remote is never read, so we need to suppress the resulting warnings
|
||||
* (or rewrite the lot)*/
|
||||
(void)remote;
|
||||
|
||||
if (format & FORMAT_REMOTE) {
|
||||
remote = true;
|
||||
#if LCD_REMOTE_DEPTH == 1
|
||||
|
|
@ -863,5 +858,11 @@ int read_bmp_fd(int fd,
|
|||
}
|
||||
#endif
|
||||
}
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
/* Thanks to the mass of #ifdefs in this function, there are cases where
|
||||
* remote is never read, so we need to suppress the resulting warnings
|
||||
* (or rewrite the lot)*/
|
||||
(void)remote;
|
||||
#endif
|
||||
return totalsize; /* return the used buffer size. */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue