summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-08-01 20:07:05 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-08-01 20:07:05 +0000
commitbd3056cb386aa9cabf274b387391c97ea32c8777 (patch)
tree415a7086853f1d6e8980fe1dcc804e0bf4d6f7ba
parent00c02218006953fd2c013de294a903c5f1e969b8 (diff)
downloadrockbox-bd3056cb386aa9cabf274b387391c97ea32c8777.tar.gz
rockbox-bd3056cb386aa9cabf274b387391c97ea32c8777.tar.bz2
rockbox-bd3056cb386aa9cabf274b387391c97ea32c8777.zip
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
-rw-r--r--apps/recorder/bmp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index fc88709afa..1b6cd87345 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -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)