summaryrefslogtreecommitdiff
path: root/gr-audio-alsa/src/audio_alsa_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio-alsa/src/audio_alsa_source.cc')
-rw-r--r--gr-audio-alsa/src/audio_alsa_source.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-audio-alsa/src/audio_alsa_source.cc b/gr-audio-alsa/src/audio_alsa_source.cc
index c467b8f85..381e553f5 100644
--- a/gr-audio-alsa/src/audio_alsa_source.cc
+++ b/gr-audio-alsa/src/audio_alsa_source.cc
@@ -138,7 +138,8 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
// Specify the access methods we implement
// For now, we only handle RW_INTERLEAVED...
snd_pcm_access_mask_t *access_mask;
- snd_pcm_access_mask_alloca (&access_mask);
+ snd_pcm_access_mask_t **access_mask_ptr = &access_mask; // FIXME: workaround for compiler warning
+ snd_pcm_access_mask_alloca (access_mask_ptr);
snd_pcm_access_mask_none (access_mask);
snd_pcm_access_mask_set (access_mask, SND_PCM_ACCESS_RW_INTERLEAVED);
// snd_pcm_access_mask_set (access_mask, SND_PCM_ACCESS_RW_NONINTERLEAVED);