From: Mike Brady Date: Fri, 18 Jan 2019 16:27:29 +0000 (+0000) Subject: remove the cause of a CLANG warning X-Git-Tag: 3.3RC0~66^2~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=020a69dfb9be8099138de580cb98578196ffeca9;p=thirdparty%2Fshairport-sync.git remove the cause of a CLANG warning --- diff --git a/audio_alsa.c b/audio_alsa.c index a1b81e4c..49500038 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -1100,7 +1100,7 @@ int delay(long *the_delay) { int oldState; snd_pcm_state_t state; - snd_pcm_sframes_t my_delay; + snd_pcm_sframes_t my_delay = 0; // this initialisation is to silence a clang warning pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldState); // make this un-cancellable pthread_cleanup_debug_mutex_lock(&alsa_mutex, 10000, 0);