From 038a608bb7728cef523b297e33a45a4b258c9c58 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 1 Aug 2011 20:13:43 +0000 Subject: [PATCH] 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 --- apps/recorder/bmp.c | 11 ++++++----- 1 file 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. */ }