]> git.sesse.net Git - vlc/commitdiff
Kill warnings of unused variables in audio_*
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Aug 2009 08:42:36 +0000 (10:42 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Aug 2009 08:53:52 +0000 (10:53 +0200)
modules/audio_mixer/spdif.c
modules/audio_output/waveout.c

index f74f4212c01470c4fb81334fbaf4abd22e65439f..6eb0665622217d731e021788d3c8f52b7ced7de1 100644 (file)
@@ -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 )
index d23e9335583a62e4539546795b6d42b9203cf5f1..5065410811841384c7c9c22bb9ad99fa974dc401 100644 (file)
@@ -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++ )
         {