[vlc-commits] Fixed unused variable and parameter warnings.
Maxim Bublis
git at videolan.org
Sun Dec 1 19:21:17 CET 2013
vlc | branch: master | Maxim Bublis <b at codemonkey.ru> | Fri Nov 22 19:07:20 2013 +0000| [4b726052a36cfab3ec3c63bdf4d10755853a1a5e] | committer: Jean-Baptiste Kempf
Fixed unused variable and parameter warnings.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b726052a36cfab3ec3c63bdf4d10755853a1a5e
---
lib/media.c | 1 +
modules/gui/eject.c | 1 +
modules/video_chroma/copy.c | 1 +
src/posix/filesystem.c | 5 ++++-
4 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/media.c b/lib/media.c
index 7acfb69..d3b9ff9 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -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;
diff --git a/modules/gui/eject.c b/modules/gui/eject.c
index 6a74bdb..e4109aa 100644
--- a/modules/gui/eject.c
+++ b/modules/gui/eject.c
@@ -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
diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index 5593d07..9eed17f 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -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,
diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index c5a8f88..246133b 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -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;
}
More information about the vlc-commits
mailing list