[vlc-devel] commit: vlc_object_dump is used only when debuging. ( Rémi Duraffort )

git version control git at videolan.org
Fri Jan 16 12:24:31 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jan 16 12:24:07 2009 +0100| [35a84e2845286bcb87697f5b29b32fc131db3bba] | committer: Rémi Duraffort 

vlc_object_dump is used only when debuging.

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

 src/misc/objects.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 5f90d99..98854a0 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -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 */
 




More information about the vlc-devel mailing list