summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-08-01 20:13:43 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-08-01 20:13:43 +0000
commit038a608bb7728cef523b297e33a45a4b258c9c58 (patch)
treefbd0e898ae7f68ea42aa20fe026b18afe2e4322c /apps/recorder
parentbd3056cb386aa9cabf274b387391c97ea32c8777 (diff)
downloadrockbox-038a608bb7728cef523b297e33a45a4b258c9c58.tar.gz
rockbox-038a608bb7728cef523b297e33a45a4b258c9c58.tar.bz2
rockbox-038a608bb7728cef523b297e33a45a4b258c9c58.zip
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
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/bmp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index 1b6cd87345..bc3b754e4d 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -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. */
}