make it compile with -O2 -Werror

This commit is contained in:
Andrzej Rybczak
2012-08-14 02:24:22 +02:00
parent 23a612e184
commit 456c855adb
3 changed files with 9 additions and 4 deletions

View File

@@ -386,8 +386,9 @@ void NcmpcppStatusChanged(MPD::Connection *, MPD::StatusChanges changed, void *)
{
if (myPlaylist->isPlaying())
{
GNUC_UNUSED int res;
if (!Config.execute_on_song_change.empty())
system(Config.execute_on_song_change.c_str());
res = system(Config.execute_on_song_change.c_str());
# ifdef HAVE_CURL_CURL_H
if (Config.fetch_lyrics_in_background)