diff options
author | Max Kellermann <max@duempel.org> | 2012-03-01 20:11:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-01 20:11:09 +0100 |
commit | e7ce362d22dd2292a357b167b74dccefc2b7612b (patch) | |
tree | 1f0238a5c3897a72c94e215892fb38afd5be7a2f /src/udp_server.c | |
parent | c551c8b31b299b8fa24cf74ea4b35c4c001eaba5 (diff) | |
download | mpd-e7ce362d22dd2292a357b167b74dccefc2b7612b.tar.gz mpd-e7ce362d22dd2292a357b167b74dccefc2b7612b.tar.xz mpd-e7ce362d22dd2292a357b167b74dccefc2b7612b.zip |
song_update, udp_server: workarounds for gcc 4.1 warnings
Annoying false positives.
Diffstat (limited to 'src/udp_server.c')
-rw-r--r-- | src/udp_server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udp_server.c b/src/udp_server.c index e70f785e2..f96b40b6b 100644 --- a/src/udp_server.c +++ b/src/udp_server.c @@ -97,6 +97,9 @@ udp_server_new(unsigned port, .s_addr = htonl(INADDR_ANY), }, .sin_port = htons(port), +#if defined(__linux__) && !GCC_CHECK_VERSION(4, 2) + .sin_zero = { 0 }, +#endif }; if (bind(fd, (const struct sockaddr *)&address, sizeof(address)) < 0) { |