module/mpd: idle mask variable is unused, when we don't debug log

This commit is contained in:
Daniel Eklöf 2018-12-28 14:15:03 +01:00
parent 0103eff3a0
commit cc59593f29

View file

@ -308,7 +308,9 @@ run(struct module_run_context *ctx)
} }
if (fds[1].revents & POLLIN) { if (fds[1].revents & POLLIN) {
enum mpd_idle idle = mpd_recv_idle(m->conn, true); enum mpd_idle idle __attribute__ ((unused)) =
mpd_recv_idle(m->conn, true);
LOG_DBG("IDLE mask: %d", idle); LOG_DBG("IDLE mask: %d", idle);
if (!update_status(mod)) if (!update_status(mod))