Kill various warnings
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Aug 2009 20:52:56 +0000 (22:52 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Aug 2009 21:43:12 +0000 (23:43 +0200)
modules/access/dvdread.c
modules/audio_filter/chorus_flanger.c

index 41fa877..82b7c4a 100644 (file)
@@ -772,6 +772,8 @@ static void ESNew( demux_t *p_demux, int i_id, int i_lang )
 static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
                            int i_angle )
 {
+    VLC_UNUSED( i_angle );
+
     demux_sys_t *p_sys = p_demux->p_sys;
     int pgc_id = 0, pgn = 0;
     int i;
@@ -1323,19 +1325,19 @@ static void DvdReadFindCell( demux_t *p_demux )
  *****************************************************************************/
 static void DemuxTitles( demux_t *p_demux, int *pi_angle )
 {
+    VLC_UNUSED( pi_angle );
+
     demux_sys_t *p_sys = p_demux->p_sys;
     input_title_t *t;
     seekpoint_t *s;
-    int32_t i_titles;
-    int i;
 
     /* Find out number of titles/chapters */
 #define tt_srpt p_sys->p_vmg_file->tt_srpt
 
-    i_titles = tt_srpt->nr_of_srpts;
+    int32_t i_titles = tt_srpt->nr_of_srpts;
     msg_Dbg( p_demux, "number of titles: %d", i_titles );
 
-    for( i = 0; i < i_titles; i++ )
+    for( int i = 0; i < i_titles; i++ )
     {
         int32_t i_chapters = 0;
         int j;
index 9581c38..2936d4a 100644 (file)
@@ -233,8 +233,10 @@ static inline void sanitize( float * f_value )
 static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
                     aout_buffer_t *p_in_buf, aout_buffer_t *p_out_buf )
 {
+    VLC_UNUSED( p_aout );
+
     struct aout_filter_sys_t *p_sys = p_filter->p_sys;
-    int i, i_chan;
+    int i_chan;
     int i_samples = p_in_buf->i_nb_samples; /* Gives the number of samples */
     int i_maxOffset = (int)floor( p_sys->f_sweepDepth * p_sys->i_sampleRate /
             1000 ); /*maximum number of samples to offset in buffer */
@@ -247,7 +249,7 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
     p_out_buf->i_nb_bytes = p_in_buf->i_nb_bytes;
 
     /* Process each sample */
-    for( i = 0; i < i_samples ; i++ )
+    for( int i = 0; i < i_samples ; i++ )
     {
         /* Use a sine function as a oscillator wave. TODO */
         /* f_offset = sinf( ( p_sys->i_cumulative ) * p_sys->f_sinMultiplier ) *