1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Index: apps/recorder/bmp.c
===================================================================
--- apps/recorder/bmp.c  (Revision 30434)
+++ apps/recorder/bmp.c  (Arbeitskopie)
@@ -461,6 +461,14 @@
 }
 #endif
 
+#ifdef HAVE_REMOTE_LCD
+/* Fake usage of a unused variable to avoid compiler warning. */
+static void avoid_set_but_not_used_warning(bool dummy)
+{
+    (void)dummy;
+}
+#endif
+
 /******************************************************************************
  * read_bmp_fd()
  *
@@ -495,6 +503,7 @@
 
 #ifdef HAVE_REMOTE_LCD
     bool remote = false;
+    avoid_set_but_not_used_warning(remote);
     if (format & FORMAT_REMOTE) {
         remote = true;
 #if LCD_REMOTE_DEPTH == 1