]> git.sesse.net Git - vlc/commitdiff
Fix non-debug builds
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 21 Jan 2008 20:45:27 +0000 (20:45 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 21 Jan 2008 20:45:27 +0000 (20:45 +0000)
src/misc/threads.c

index 8adc91a9f3c4d0dc05de465c6832a1d9c60582fd..98b47be9cdcdfeeabb7ce664be76ccf5d17243c7 100644 (file)
@@ -77,6 +77,7 @@ static pthread_mutex_t once_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 vlc_threadvar_t msg_context_global_key;
 
+#ifndef NDEBUG
 /*****************************************************************************
  * vlc_threads_error: Report an error from the threading mecanism
  *****************************************************************************
@@ -88,6 +89,7 @@ void vlc_threads_error( vlc_object_t *p_this )
      msg_Err( p_this, "Error detected. Put a breakpoint in '%s' to debug.",
             __func__ );
 }
+#endif
 
 /*****************************************************************************
  * vlc_threads_init: initialize threads system