[vlc-devel] commit: Fix warning about unused variables. ( Rémi Duraffort )

git version control git at videolan.org
Thu Aug 14 23:20:22 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug 14 23:10:10 2008 +0200| [9edf694369c7f73bbd6a8eeab9abcd8fcacbd389] | committer: Rémi Duraffort 

Fix warning about unused variables.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9edf694369c7f73bbd6a8eeab9abcd8fcacbd389
---

 modules/access/dvdnav.c    |    3 +++
 modules/access/v4l2/v4l2.c |   11 +++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 5520d5a..429a97f 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1352,6 +1352,7 @@ static void* EventThread( vlc_object_t *p_this )
 static int EventMouse( vlc_object_t *p_this, char const *psz_var,
                        vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    (void)p_this;    (void)oldval;    (void)newval;    (void)p_data;
     event_thread_t *p_ev = p_data;
     vlc_mutex_lock( &p_ev->lock );
     if( psz_var[6] == 'c' )
@@ -1366,6 +1367,7 @@ static int EventMouse( vlc_object_t *p_this, char const *psz_var,
 static int EventKey( vlc_object_t *p_this, char const *psz_var,
                      vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    (void)p_this;    (void)psz_var;    (void)oldval;
     event_thread_t *p_ev = p_data;
     vlc_mutex_lock( &p_ev->lock );
     p_ev->i_key_action = newval.i_int;
@@ -1379,6 +1381,7 @@ static int EventKey( vlc_object_t *p_this, char const *psz_var,
  *****************************************************************************/
 static int ProbeDVD( demux_t *p_demux, char *psz_name )
 {
+    (void)p_demux;
 #ifdef HAVE_SYS_STAT_H
     struct stat stat_info;
     uint8_t pi_anchor[2];
diff --git a/modules/access/v4l2/v4l2.c b/modules/access/v4l2/v4l2.c
index 0f82bc2..550b134 100644
--- a/modules/access/v4l2/v4l2.c
+++ b/modules/access/v4l2/v4l2.c
@@ -1140,6 +1140,7 @@ static void DemuxClose( vlc_object_t *p_this )
 
 static void CommonClose( vlc_object_t *p_this, demux_sys_t *p_sys )
 {
+    (void)p_this;
     /* Close */
     if( p_sys->i_fd_video >= 0 ) close( p_sys->i_fd_video );
 #ifdef HAVE_ALSA
@@ -3474,6 +3475,7 @@ static int DemuxControlCallback( vlc_object_t *p_this,
     const char *psz_var, vlc_value_t oldval, vlc_value_t newval,
     void *p_data )
 {
+    (void)oldval;
     demux_t *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys = p_demux->p_sys;
     int i_cid = (int)p_data;
@@ -3489,9 +3491,9 @@ static int DemuxControlCallback( vlc_object_t *p_this,
 }
 
 static int DemuxControlResetCallback( vlc_object_t *p_this,
-    const char *psz_var, vlc_value_t oldval, vlc_value_t newval,
-    void *p_data )
+    const char *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    (void)psz_var;    (void)oldval;    (void)newval;    (void)p_data;
     demux_t *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys = p_demux->p_sys;
 
@@ -3509,6 +3511,7 @@ static int AccessControlCallback( vlc_object_t *p_this,
     const char *psz_var, vlc_value_t oldval, vlc_value_t newval,
     void *p_data )
 {
+    (void)oldval;
     access_t *p_access = (access_t *)p_this;
     demux_sys_t *p_sys = (demux_sys_t *) p_access->p_sys;
     int i_cid = (int)p_data;
@@ -3524,9 +3527,9 @@ static int AccessControlCallback( vlc_object_t *p_this,
 }
 
 static int AccessControlResetCallback( vlc_object_t *p_this,
-    const char *psz_var, vlc_value_t oldval, vlc_value_t newval,
-    void *p_data )
+    const char *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    (void)psz_var;     (void)oldval;     (void)newval;     (void)p_data;
     access_t *p_access = (access_t *)p_this;
     demux_sys_t *p_sys = (demux_sys_t *) p_access->p_sys;
 




More information about the vlc-devel mailing list