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)