summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
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. */
}