diff options
author | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-13 07:38:24 +0000 |
---|---|---|
committer | enselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-09-13 07:38:24 +0000 |
commit | ecc7ccf4143ad100ddffa2ce99845a384341f369 (patch) | |
tree | d2f5947df3e3bec92a4bc8f13e8d436fe8415949 /recordmydesktop/src/opendev.c | |
parent | 884ef88a4d746564994c9ba7cceaeecde1975f9c (diff) |
src/opendev.c: Explain why the compiler might warn us.
src/specsfile.c: Fix compiler warnings.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@523 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/opendev.c')
-rw-r--r-- | recordmydesktop/src/opendev.c | 4 |
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); |