aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-01 20:11:04 +0100
committerMax Kellermann <max@duempel.org>2012-03-01 20:11:09 +0100
commite7ce362d22dd2292a357b167b74dccefc2b7612b (patch)
tree1f0238a5c3897a72c94e215892fb38afd5be7a2f /src/song_update.c
parentc551c8b31b299b8fa24cf74ea4b35c4c001eaba5 (diff)
downloadmpd-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 '')
-rw-r--r--src/song_update.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/song_update.c b/src/song_update.c
index 1d8f22d4d..37f502a20 100644
--- a/src/song_update.c
+++ b/src/song_update.c
@@ -113,6 +113,11 @@ song_file_update(struct song *song)
GMutex *mutex = NULL;
GCond *cond;
+#if !GCC_CHECK_VERSION(4, 2)
+ /* work around "may be used uninitialized in this function"
+ false positive */
+ cond = NULL;
+#endif
do {
/* load file tag */