From: Max Kellermann Date: Wed, 8 Oct 2008 10:44:45 +0000 (+0200) Subject: screen_browser: fix warning when lyrics screen is disabled X-Git-Tag: v0.12_alpha1~46 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b67f06990bc841ae95942b606c49e8995672d9d2;p=ncmpc.git 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. --- 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: