Code

screen_browser: fix warning when lyrics screen is disabled
authorMax Kellermann <max@duempel.org>
Wed, 8 Oct 2008 10:44:45 +0000 (12:44 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 8 Oct 2008 10:44:45 +0000 (12:44 +0200)
A local variable was only used by the lyrics screen code.  Put #ifdef
around its declaration.

src/screen_browser.c

index 00965edb0e07e493f61ac4ef07d34da79525ad60..5bea9e49075158a5eb37a1d2f38e957ddd10c2ca 100644 (file)
@@ -456,7 +456,9 @@ bool
 browser_cmd(struct screen_browser *browser,
            struct mpdclient *c, command_t cmd)
 {
+#ifdef ENABLE_LYRICS_SCREEN
        struct filelist_entry *entry;
+#endif
 
        switch (cmd) {
        case CMD_PLAY: