Sfoglia il codice sorgente

sokol_audio.h: fix unused param warning in Linux code path

Andre Weissflog 5 anni fa
parent
commit
8c17365968
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      sokol_audio.h

+ 1 - 0
sokol_audio.h

@@ -988,6 +988,7 @@ _SOKOL_PRIVATE void _saudio_backend_shutdown(void) {
 
 /* the streaming callback runs in a separate thread */
 _SOKOL_PRIVATE void* _saudio_alsa_cb(void* param) {
+    _SOKOL_UNUSED(param);
     while (!_saudio.backend.thread_stop) {
         /* snd_pcm_writei() will be blocking until it needs data */
         int write_res = snd_pcm_writei(_saudio.backend.device, _saudio.backend.buffer, _saudio.backend.buffer_frames);