[vlc-devel] commit: libvlc: Fix some unused arg warning in vlm and playlist. (Pierre d' Herbemont )

git version control git at videolan.org
Thu Aug 20 12:05:27 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 12:01:12 2009 +0200| [8f1c0142c806d1f553168c366ef05b70d132d3a2] | committer: Pierre d'Herbemont 

libvlc: Fix some unused arg warning in vlm and playlist.

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

 src/control/playlist.c |    1 +
 src/control/vlm.c      |    8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/control/playlist.c b/src/control/playlist.c
index a2ccdc8..fe882bc 100644
--- a/src/control/playlist.c
+++ b/src/control/playlist.c
@@ -40,6 +40,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
 {
     playlist_t *pl = libvlc_priv (p_instance->p_libvlc_int)->p_playlist;
     VLC_UNUSED(i_id); VLC_UNUSED(i_options); VLC_UNUSED(ppsz_options);
+    VLC_UNUSED(p_e);
 
     assert( pl );
     if( pl->items.i_size == 0 )
diff --git a/src/control/vlm.c b/src/control/vlm.c
index b0ba8d5..e6e96b6 100644
--- a/src/control/vlm.c
+++ b/src/control/vlm.c
@@ -37,14 +37,13 @@
 static int VlmEvent( vlc_object_t *p_this, const char * name,
                      vlc_value_t old_val, vlc_value_t newval, void *param )
 {
+    VLC_UNUSED(p_this);
+    VLC_UNUSED(name);
+    VLC_UNUSED(old_val);    
     vlm_event_t *event = (vlm_event_t*)newval.p_address;
     libvlc_event_manager_t *p_event_manager = (libvlc_event_manager_t *) param;
     libvlc_event_t libvlc_event;
 
-    VLC_UNUSED( p_this );
-    VLC_UNUSED( name );
-    VLC_UNUSED( old_val );
-
     libvlc_event.u.vlm_media_event.psz_instance_name = NULL;
     libvlc_event.u.vlm_media_event.psz_media_name = event->psz_name;
 
@@ -183,6 +182,7 @@ static int libvlc_vlm_init( libvlc_instance_t *p_instance,
 void libvlc_vlm_release( libvlc_instance_t *p_instance,
                          libvlc_exception_t *p_exception)
 {
+    VLC_UNUSED(p_exception);
     libvlc_vlm_release_internal( p_instance );
 }
 




More information about the vlc-devel mailing list