]> git.sesse.net Git - vlc/commitdiff
vlc_object_dump is used only when debuging.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 16 Jan 2009 11:24:07 +0000 (12:24 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 16 Jan 2009 11:24:07 +0000 (12:24 +0100)
src/misc/objects.c

index 5f90d9942c17efcb0861c76d4be4c1f7b703b77d..98854a0ea6dcf2086a4e7b9d51b1f52cf9516a11 100644 (file)
@@ -83,7 +83,9 @@ static void           ListChildren  ( vlc_list_t *, vlc_object_t *, int );
 
 static void vlc_object_destroy( vlc_object_t *p_this );
 static void vlc_object_detach_unlocked (vlc_object_t *p_this);
+#ifndef NDEBUG
 static void vlc_object_dump( vlc_object_t *p_this );
+#endif
 
 /*****************************************************************************
  * Local structure lock
@@ -1024,6 +1026,7 @@ void vlc_list_release( vlc_list_t *p_list )
 /*****************************************************************************
  * dump an object. (Debug function)
  *****************************************************************************/
+#ifndef NDEBUG
 static void vlc_object_dump( vlc_object_t *p_this )
 {
     char psz_foo[2 * MAX_DUMPSTRUCTURE_DEPTH + 1];
@@ -1031,6 +1034,7 @@ static void vlc_object_dump( vlc_object_t *p_this )
 
     DumpStructure( p_this, 0, psz_foo );
 }
+#endif
 
 /* Following functions are local */