[vlc-devel] commit: vcd: Flag unused argument, and fix a pointer to number comparison to kill warnings. (Pierre d' Herbemont )

git version control git at videolan.org
Thu Aug 20 11:31:19 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 11:00:16 2009 +0200| [534232c184fc0d239f80e1f144b1ac312109a3bb] | committer: Pierre d'Herbemont 

vcd: Flag unused argument, and fix a pointer to number comparison to kill warnings.

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

 modules/access/vcd/cdrom.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index 8156a9f..66eec68 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -850,7 +850,7 @@ static CDTOC *darwin_getTOC( vlc_object_t * p_this, const vcddev_t *p_vcddev )
         IOObjectRelease( iterator );
     }
 
-    if( service == NULL )
+    if( !service )
     {
         msg_Err( p_this, "search for kIOCDMediaClass came up empty" );
         return( NULL );
@@ -1097,6 +1097,9 @@ static int CdTextRead( vlc_object_t *p_object, const vcddev_t *p_vcddev,
                        uint8_t **pp_buffer, int *pi_buffer )
 {
     VLC_UNUSED( p_object );
+    VLC_UNUSED( p_vcddev );
+    VLC_UNUSED( pp_buffer );
+    VLC_UNUSED( pi_buffer );
     return -1;
 }
 #elif defined( WIN32 )




More information about the vlc-devel mailing list