summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/opendev.c
diff options
context:
space:
mode:
Diffstat (limited to 'recordmydesktop/src/opendev.c')
-rw-r--r--recordmydesktop/src/opendev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/recordmydesktop/src/opendev.c b/recordmydesktop/src/opendev.c
index 45ce2d0..7ea7f9d 100644
--- a/recordmydesktop/src/opendev.c
+++ b/recordmydesktop/src/opendev.c
@@ -58,8 +58,10 @@ snd_pcm_t *OpenDev( const char *pcm_dev,
snd_pcm_hw_params_t *hwparams;
unsigned int periods=2;
unsigned int exactrate = *frequency;
- snd_pcm_hw_params_alloca(&hwparams);
+ // The compiler might warn us because the expansion starts with
+ // assert(&hwparams)
+ snd_pcm_hw_params_alloca(&hwparams);
if (snd_pcm_open(&mhandle,pcm_dev,SND_PCM_STREAM_CAPTURE,SND_PCM_ASYNC)<0){
fprintf(stderr, "Couldn't open PCM device %s\n", pcm_dev);
© All Rights Reserved