diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2011-08-01 20:13:43 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2011-08-01 20:13:43 +0000 |
| commit | 038a608bb7728cef523b297e33a45a4b258c9c58 (patch) | |
| tree | fbd0e898ae7f68ea42aa20fe026b18afe2e4322c /apps | |
| parent | bd3056cb386aa9cabf274b387391c97ea32c8777 (diff) | |
| download | rockbox-038a608bb7728cef523b297e33a45a4b258c9c58.zip rockbox-038a608bb7728cef523b297e33a45a4b258c9c58.tar.gz rockbox-038a608bb7728cef523b297e33a45a4b258c9c58.tar.bz2 rockbox-038a608bb7728cef523b297e33a45a4b258c9c58.tar.xz | |
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')
| -rw-r--r-- | apps/recorder/bmp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 1b6cd87..bc3b754 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. */ } |