From cc0773a862ca4df84e7dea7ce975910c5ac518a6 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Fri, 21 Aug 2009 16:32:43 +0200 Subject: [PATCH] win32: Flag some unused arg warnings. --- src/extras/getopt.c | 2 ++ src/misc/w32thread.c | 1 + src/misc/win32_specific.c | 1 + 3 files changed, 4 insertions(+) diff --git a/src/extras/getopt.c b/src/extras/getopt.c index 1dbcc89954..fe301f4f8a 100644 --- a/src/extras/getopt.c +++ b/src/extras/getopt.c @@ -359,6 +359,8 @@ static const char * char *const *argv; const char *optstring; { + (void)argc; + (void)argv; /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ diff --git a/src/misc/w32thread.c b/src/misc/w32thread.c index 0edba5ecfe..44b3ad2f76 100644 --- a/src/misc/w32thread.c +++ b/src/misc/w32thread.c @@ -373,6 +373,7 @@ void vlc_rwlock_unlock (vlc_rwlock_t *lock) int vlc_threadvar_create (vlc_threadvar_t *p_tls, void (*destr) (void *)) { #warning FIXME: use destr() callback and stop leaking! + *p_tls = TlsAlloc(); return (*p_tls == TLS_OUT_OF_INDEXES) ? EAGAIN : 0; } diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c index a596502a0a..ea294eda89 100644 --- a/src/misc/win32_specific.c +++ b/src/misc/win32_specific.c @@ -47,6 +47,7 @@ *****************************************************************************/ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) { + VLC_UNUSED( p_this ); VLC_UNUSED( pi_argc ); VLC_UNUSED( ppsz_argv ); WSADATA Data; /* Get our full path */ -- 2.39.5