[vlc-devel] commit: Kill various warnings (Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Aug 19 23:43:22 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 19 22:52:56 2009 +0200| [77eea9b34308aa90f877c8a8c295d532949e4eb2] | committer: Jean-Baptiste Kempf
Kill various warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77eea9b34308aa90f877c8a8c295d532949e4eb2
---
modules/access/dvdread.c | 10 ++++++----
modules/audio_filter/chorus_flanger.c | 6 ++++--
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 41fa877..82b7c4a 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -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;
diff --git a/modules/audio_filter/chorus_flanger.c b/modules/audio_filter/chorus_flanger.c
index 9581c38..2936d4a 100644
--- a/modules/audio_filter/chorus_flanger.c
+++ b/modules/audio_filter/chorus_flanger.c
@@ -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 ) *
More information about the vlc-devel
mailing list