--- a/src/avtransport.cxx
+++ b/src/avtransport.cxx
@@ -403,7 +403,9 @@
         m_dev->m_mpdcli->clearQueue();
     }
 
-    bool is_song = (st == MpdStatus::MPDS_PLAY) || (st == MpdStatus::MPDS_PAUSE);
+    bool is_song = (st == MpdStatus::MPDS_PLAY) ||
+	(st == MpdStatus::MPDS_PAUSE);
+    UPMPD_UNUSED(is_song);
     int curpos = mpds.songpos;
     LOGDEB1("UpMpdAVTransport::set" << (setnext?"Next":"") << 
             "AVTransportURI: curpos: " <<