]> git.sesse.net Git - vlc/commitdiff
vlc_thread_fatal is not needed on production builds
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 11 Apr 2009 18:00:38 +0000 (21:00 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 11 Apr 2009 18:00:38 +0000 (21:00 +0300)
src/misc/threads.c

index 75aed7077c54218d39648cc27a1cc68b02e8028e..71bb3b49f709fdd951d8d7bf6210dce58f7df7ad 100644 (file)
@@ -94,6 +94,7 @@ static inline unsigned long vlc_threadid (void)
 #endif
 }
 
+#ifndef NDEBUG
 /*****************************************************************************
  * vlc_thread_fatal: Report an error from the threading layer
  *****************************************************************************
@@ -136,7 +137,6 @@ vlc_thread_fatal (const char *action, int error,
     abort ();
 }
 
-#ifndef NDEBUG
 # define VLC_THREAD_ASSERT( action ) \
     if (val) vlc_thread_fatal (action, val, __func__, __FILE__, __LINE__)
 #else