[vlc-devel] commit: Shut a few unused parameters for Windows compiling. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Mar 13 04:43:40 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Mar 12 20:38:54 2008 -0700| [17125cc60b178e1f4419e5242f233f89c5368703]
Shut a few unused parameters for Windows compiling.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17125cc60b178e1f4419e5242f233f89c5368703
---
src/misc/threads.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index ee60220..0697ab2 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -378,9 +378,13 @@ int __vlc_mutex_init_recursive( vlc_mutex_t *p_mutex )
void __vlc_mutex_destroy( const char * psz_file, int i_line, vlc_mutex_t *p_mutex )
{
#if defined( UNDER_CE )
+ VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
+
DeleteCriticalSection( &p_mutex->csection );
#elif defined( WIN32 )
+ VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
+
if( p_mutex->mutex )
CloseHandle( p_mutex->mutex );
else
@@ -499,9 +503,13 @@ int __vlc_cond_init( vlc_cond_t *p_condvar )
void __vlc_cond_destroy( const char * psz_file, int i_line, vlc_cond_t *p_condvar )
{
#if defined( UNDER_CE )
+ VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
+
CloseHandle( p_condvar->event );
#elif defined( WIN32 )
+ VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
+
if( !p_condvar->semaphore )
CloseHandle( p_condvar->event );
else
@@ -684,6 +692,8 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, const char * psz_file,
{
vlc_object_internals_t *p_priv = p_this->p_internals;
#if defined( WIN32 ) || defined( UNDER_CE )
+ VLC_UNUSED( psz_file); VLC_UNUSED( i_line );
+
if( !p_priv->thread_id.hThread )
p_priv->thread_id.hThread = GetCurrentThread();
if( !SetThreadPriority(p_priv->thread_id.hThread, i_priority) )
More information about the vlc-devel
mailing list