[vlc-devel] commit: Kill warnings of unused variables in audio_* (Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Aug 20 10:54:03 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 20 10:42:36 2009 +0200| [7ec73fa96835e5aa9aff189f018a1c318828e4f6] | committer: Jean-Baptiste Kempf
Kill warnings of unused variables in audio_*
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ec73fa96835e5aa9aff189f018a1c318828e4f6
---
modules/audio_mixer/spdif.c | 2 ++
modules/audio_output/waveout.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/audio_mixer/spdif.c b/modules/audio_mixer/spdif.c
index f74f421..6eb0665 100644
--- a/modules/audio_mixer/spdif.c
+++ b/modules/audio_mixer/spdif.c
@@ -76,6 +76,8 @@ static int Create( vlc_object_t *p_this )
*****************************************************************************/
static void DoWork( aout_instance_t * p_aout, aout_buffer_t * p_buffer )
{
+ VLC_UNUSED( p_buffer );
+
int i = 0;
aout_input_t * p_input = p_aout->pp_inputs[i];
while ( p_input->b_error || p_input->b_paused )
diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c
index d23e933..5065410 100644
--- a/modules/audio_output/waveout.c
+++ b/modules/audio_output/waveout.c
@@ -1148,7 +1148,7 @@ static int VolumeSet( aout_instance_t * p_aout, audio_volume_t i_volume )
static int ReloadWaveoutDevices( vlc_object_t *p_this, char const *psz_name,
vlc_value_t newval, vlc_value_t oldval, void *data )
{
- int i;
+ VLC_UNUSED( newval ); VLC_UNUSED( oldval ); VLC_UNUSED( data );
module_config_t *p_item = config_FindConfig( p_this, psz_name );
if( !p_item ) return VLC_SUCCESS;
@@ -1156,6 +1156,8 @@ static int ReloadWaveoutDevices( vlc_object_t *p_this, char const *psz_name,
/* Clear-up the current list */
if( p_item->i_list )
{
+ int i;
+
/* Keep the first entry */
for( i = 1; i < p_item->i_list; i++ )
{
More information about the vlc-devel
mailing list