Suppress a "variable 'remote' set but not used" warning that some gcc versions (rightly) emit for the m:robe 100 sim. The "correct" solution would be to add about twenty five more #ifdefs to a function that already has way too many of them, or to rewrite the entire function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30236 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
00c0221800
commit
bd3056cb38
1 changed files with 6 additions and 1 deletions
|
@ -495,6 +495,11 @@ 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
|
||||
|
@ -561,7 +566,7 @@ int read_bmp_fd(int fd,
|
|||
resize |= IMG_NORESIZE;
|
||||
#endif
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
remote = 0;
|
||||
remote = false;
|
||||
#endif
|
||||
}
|
||||
#elif !defined(PLUGIN)
|
||||
|
|
Loading…
Reference in a new issue