After changing ERROR();exit() to FATAL(), gcc incorrectly detects some
uninitialized variables and non-returning functions that return. Let's tell it to stfu. git-svn-id: https://svn.musicpd.org/mpd/trunk@6277 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -117,7 +117,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
|
|||||||
char *user;
|
char *user;
|
||||||
char *name;
|
char *name;
|
||||||
BlockParam *blockParam;
|
BlockParam *blockParam;
|
||||||
unsigned int public;
|
unsigned int public = 0;
|
||||||
|
|
||||||
sd = newShoutData();
|
sd = newShoutData();
|
||||||
|
|
||||||
@@ -157,8 +157,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
|
|||||||
FATAL("public \"%s\" is not \"yes\" or \"no\" at line "
|
FATAL("public \"%s\" is not \"yes\" or \"no\" at line "
|
||||||
"%i\n", param->value, param->line);
|
"%i\n", param->value, param->line);
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
public = 0;
|
|
||||||
|
|
||||||
blockParam = getBlockParam(param, "user");
|
blockParam = getBlockParam(param, "user");
|
||||||
if (blockParam)
|
if (blockParam)
|
||||||
|
@@ -53,7 +53,7 @@ static int boundPort;
|
|||||||
static int establishListen(unsigned int port,
|
static int establishListen(unsigned int port,
|
||||||
struct sockaddr *addrp, socklen_t addrlen)
|
struct sockaddr *addrp, socklen_t addrlen)
|
||||||
{
|
{
|
||||||
int pf;
|
int pf = 0;
|
||||||
int sock;
|
int sock;
|
||||||
int allowReuse = ALLOW_REUSE;
|
int allowReuse = ALLOW_REUSE;
|
||||||
|
|
||||||
@@ -105,8 +105,8 @@ static int establishListen(unsigned int port,
|
|||||||
|
|
||||||
static void parseListenConfigParam(unsigned int port, ConfigParam * param)
|
static void parseListenConfigParam(unsigned int port, ConfigParam * param)
|
||||||
{
|
{
|
||||||
struct sockaddr *addrp;
|
struct sockaddr *addrp = NULL;
|
||||||
socklen_t addrlen;
|
socklen_t addrlen = 0;
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
#ifdef HAVE_IPV6
|
#ifdef HAVE_IPV6
|
||||||
struct sockaddr_in6 sin6;
|
struct sockaddr_in6 sin6;
|
||||||
|
@@ -106,5 +106,6 @@ void read_state_file(void)
|
|||||||
void mpd_noreturn state_file_fatal(void)
|
void mpd_noreturn state_file_fatal(void)
|
||||||
{
|
{
|
||||||
FATAL("error parsing state file \"%s\"\n", sfpath);
|
FATAL("error parsing state file \"%s\"\n", sfpath);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user