Commit b546bcfe authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

fix "unreachable code" warning

There is unreachable code at several positions, e.g. after an #if/#end, or after an endless loop. Remove that. git-svn-id: https://svn.musicpd.org/mpd/trunk@7197 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 66fe5806
......@@ -88,9 +88,9 @@ int setCharSetConversion(const char *to, const char *from)
char_conv_use_iconv = 1;
return 0;
#endif
#else
return -1;
#endif
}
char *char_conv_str(char *dest, const char *string)
......
......@@ -161,8 +161,6 @@ static int playerInit(void)
} else
my_usleep(10000);
}
exit(EXIT_SUCCESS);
}
else if (player_pid < 0)
{
......
......@@ -973,8 +973,6 @@ static int currentSongInPlaylist(int fd)
return playPlaylistOrderNumber(fd, playlist.current);
} else
return stopPlaylist(fd);
return 0;
}
int nextSongInPlaylist(int fd)
......@@ -996,8 +994,6 @@ int nextSongInPlaylist(int fd)
incrPlaylistCurrent();
return stopPlaylist(fd);
}
return 0;
}
void playPlaylistIfPlayerStopped(void)
......@@ -1270,8 +1266,6 @@ int previousSongInPlaylist(int fd)
return playPlaylistOrderNumber(fd, playlist.current);
}
}
return 0;
}
int shufflePlaylist(int fd)
......
......@@ -76,8 +76,9 @@ int ipv6Supported(void)
return 0;
close(s);
return 1;
#endif
#else
return 0;
#endif
}
char *appendToString(char *dest, const char *src)
......
......@@ -510,7 +510,6 @@ int changeVolumeLevel(int fd, int change, int rel)
return changeSoftwareVolume(fd, change, rel);
default:
return 0;
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment