]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
remove the cause of a CLANG warning
authorMike Brady <mikebrady@eircom.net>
Fri, 18 Jan 2019 16:27:29 +0000 (16:27 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 18 Jan 2019 16:27:29 +0000 (16:27 +0000)
audio_alsa.c

index a1b81e4cab1b8eca335630bf7e30bc484a8c2de7..495000389ea68880b95e2457884436ccc5a0e578 100644 (file)
@@ -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);