From b67f06990bc841ae95942b606c49e8995672d9d2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 12:44:45 +0200 Subject: [PATCH] screen_browser: fix warning when lyrics screen is disabled A local variable was only used by the lyrics screen code. Put #ifdef around its declaration. --- src/screen_browser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/screen_browser.c b/src/screen_browser.c index 00965ed..5bea9e4 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -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: -- 2.30.2