[vlc-devel] commit: Kill potential unused variable warning ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jul 24 20:07:14 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jul 24 21:09:31 2008 +0300| [4794bb1e1b0c9fec3cbf24b84421a67e081b680f]

Kill potential unused variable warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4794bb1e1b0c9fec3cbf24b84421a67e081b680f
---

 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 f025fae..01e8b71 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -188,7 +188,7 @@ VLC_EXPORT(void, vlc_pthread_fatal, (const char *action, int error, const char *
     if (val) \
         vlc_pthread_fatal (action, val, psz_file, i_line)
 #else
-# define VLC_THREAD_ASSERT (void)0
+# define VLC_THREAD_ASSERT ((void)(val))
 #endif
 
 static inline void __vlc_mutex_lock( const char * psz_file, int i_line,




More information about the vlc-devel mailing list