[vlc-devel] commit: threads: Make sure vlc_assert_locked() doesn' t result in an unused parameter warning. (Pierre d'Herbemont )
git version control
git at videolan.org
Wed Aug 13 01:19:48 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Aug 13 01:22:17 2008 +0200| [a8945cda0fcd2bec427b8e026767566cf4743a24] | committer: Pierre d'Herbemont
threads: Make sure vlc_assert_locked() doesn't result in an unused parameter warning.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8945cda0fcd2bec427b8e026767566cf4743a24
---
include/vlc_threads.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index c84512b..5cee5bf 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -209,7 +209,7 @@ static inline void __vlc_mutex_lock( const char * psz_file, int i_line,
}
#ifndef vlc_assert_locked
-# define vlc_assert_locked( m ) (void)0
+# define vlc_assert_locked( m ) (void)m
#endif
/*****************************************************************************
More information about the vlc-devel
mailing list