summaryrefslogtreecommitdiff
path: root/gr-audio-alsa
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio-alsa')
-rw-r--r--gr-audio-alsa/src/Makefile.am2
-rw-r--r--gr-audio-alsa/src/audio_alsa_sink.cc3
-rw-r--r--gr-audio-alsa/src/audio_alsa_source.cc3
3 files changed, 6 insertions, 2 deletions
diff --git a/gr-audio-alsa/src/Makefile.am b/gr-audio-alsa/src/Makefile.am
index 2b73c7b11..742af80b5 100644
--- a/gr-audio-alsa/src/Makefile.am
+++ b/gr-audio-alsa/src/Makefile.am
@@ -90,6 +90,8 @@ _audio_alsa_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
libgr_audio_alsa_la_LDFLAGS = $(NO_UNDEFINED)
+_audio_alsa_la_CXXFLAGS = @swig_CXXFLAGS@
+
audio_alsa.cc audio_alsa.py: $(LOCAL_IFILES) $(NON_LOCAL_IFILES)
$(SWIG) $(SWIGPYTHONARGS) -module audio_alsa -o audio_alsa.cc $(LOCAL_IFILES)
diff --git a/gr-audio-alsa/src/audio_alsa_sink.cc b/gr-audio-alsa/src/audio_alsa_sink.cc
index ef51f7553..fe3f043bf 100644
--- a/gr-audio-alsa/src/audio_alsa_sink.cc
+++ b/gr-audio-alsa/src/audio_alsa_sink.cc
@@ -138,7 +138,8 @@ audio_alsa_sink::audio_alsa_sink (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);
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);