]> git.sesse.net Git - vlc/commitdiff
Fixed unused variable and parameter warnings.
authorMaxim Bublis <b@codemonkey.ru>
Fri, 22 Nov 2013 19:07:20 +0000 (19:07 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 1 Dec 2013 18:19:14 +0000 (19:19 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
lib/media.c
modules/gui/eject.c
modules/video_chroma/copy.c
src/posix/filesystem.c

index 7acfb69249fc575e3843475fa458d5047fdb72ef..d3b9ff925e4b010e14ad09d7f2599a4d8e8c0254 100644 (file)
@@ -125,6 +125,7 @@ static void input_item_subitem_added( const vlc_event_t *p_event,
 static void input_item_subitemtree_added( const vlc_event_t * p_event,
                                           void * user_data )
 {
+    VLC_UNUSED( p_event );
     libvlc_media_t * p_md = user_data;
     libvlc_event_t event;
 
index 6a74bdbf901215fb8c8a8b2e1dbf77a4a40db348..e4109aade0177df94a380cffcdfe77a7488af61a 100644 (file)
@@ -174,6 +174,7 @@ static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
     return VLC_SUCCESS;
 
 #else
+    VLC_UNUSED( psz_device );
     msg_Warn( p_this, "CD-Rom ejection unsupported on this platform" );
     return VLC_EGENERIC;
 #endif
index 5593d073a6e41cff202be331ffb7e26eb9ef272b..9eed17f7d72fcb9e163244f9c43c3afe69558eb3 100644 (file)
@@ -172,6 +172,7 @@ static void SSE_SplitUV(uint8_t *dstu, size_t dstu_pitch,
                         const uint8_t *src, size_t src_pitch,
                         unsigned width, unsigned height, unsigned cpu)
 {
+    VLC_UNUSED(cpu);
     const uint8_t shuffle[] = { 0, 2, 4, 6, 8, 10, 12, 14,
                                 1, 3, 5, 7, 9, 11, 13, 15 };
     const uint8_t mask[] = { 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00,
index c5a8f88937e2779e2a0746184d1caa6c4b73742e..246133b7a027ba7e5c37d799819b9e046f4d0814 100644 (file)
@@ -103,9 +103,12 @@ int vlc_openat (int dir, const char *filename, int flags, ...)
     if (fd != -1)
         fcntl (fd, F_SETFD, FD_CLOEXEC);
 #else
+       VLC_UNUSED (dir);
+       VLC_UNUSED (filename);
+       VLC_UNUSED (mode);
+
     int fd = -1;
     errno = ENOSYS;
-    (void) mode;
 #endif
     return fd;
 }