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
This commit is contained in:

committed by
Eric Wong

parent
66fe580642
commit
b546bcfec6
@ -88,9 +88,9 @@ int setCharSetConversion(const char *to, const char *from)
|
|||||||
char_conv_use_iconv = 1;
|
char_conv_use_iconv = 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
char *char_conv_str(char *dest, const char *string)
|
char *char_conv_str(char *dest, const char *string)
|
||||||
|
@ -161,8 +161,6 @@ static int playerInit(void)
|
|||||||
} else
|
} else
|
||||||
my_usleep(10000);
|
my_usleep(10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
|
||||||
}
|
}
|
||||||
else if (player_pid < 0)
|
else if (player_pid < 0)
|
||||||
{
|
{
|
||||||
|
@ -973,8 +973,6 @@ static int currentSongInPlaylist(int fd)
|
|||||||
return playPlaylistOrderNumber(fd, playlist.current);
|
return playPlaylistOrderNumber(fd, playlist.current);
|
||||||
} else
|
} else
|
||||||
return stopPlaylist(fd);
|
return stopPlaylist(fd);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int nextSongInPlaylist(int fd)
|
int nextSongInPlaylist(int fd)
|
||||||
@ -996,8 +994,6 @@ int nextSongInPlaylist(int fd)
|
|||||||
incrPlaylistCurrent();
|
incrPlaylistCurrent();
|
||||||
return stopPlaylist(fd);
|
return stopPlaylist(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void playPlaylistIfPlayerStopped(void)
|
void playPlaylistIfPlayerStopped(void)
|
||||||
@ -1270,8 +1266,6 @@ int previousSongInPlaylist(int fd)
|
|||||||
return playPlaylistOrderNumber(fd, playlist.current);
|
return playPlaylistOrderNumber(fd, playlist.current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int shufflePlaylist(int fd)
|
int shufflePlaylist(int fd)
|
||||||
|
@ -76,8 +76,9 @@ int ipv6Supported(void)
|
|||||||
return 0;
|
return 0;
|
||||||
close(s);
|
close(s);
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
char *appendToString(char *dest, const char *src)
|
char *appendToString(char *dest, const char *src)
|
||||||
|
@ -510,7 +510,6 @@ int changeVolumeLevel(int fd, int change, int rel)
|
|||||||
return changeSoftwareVolume(fd, change, rel);
|
return changeSoftwareVolume(fd, change, rel);
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user