From 020a69dfb9be8099138de580cb98578196ffeca9 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Fri, 18 Jan 2019 16:27:29 +0000 Subject: [PATCH] remove the cause of a CLANG warning --- audio_alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);