From e7ce362d22dd2292a357b167b74dccefc2b7612b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 1 Mar 2012 20:11:04 +0100 Subject: song_update, udp_server: workarounds for gcc 4.1 warnings Annoying false positives. --- src/song_update.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/song_update.c') diff --git a/src/song_update.c b/src/song_update.c index 1d8f22d4..37f502a2 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 */ -- cgit v1.2.3