From: Tor Lillqvist Date: Mon, 6 Aug 2007 14:23:54 +0000 (+0000) Subject: Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so X-Git-Tag: GLIB_2_14_1~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faaaa24885cf4c6fcf63d56515fe27fa483b6465;p=platform%2Fupstream%2Fglib.git Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so 2007-08-06 Tor Lillqvist * glib/gslice.c: Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so that the function exists (but doesn't do anything) also in a non-debug build. (#440544) svn path=/trunk/; revision=5679 --- diff --git a/ChangeLog b/ChangeLog index 4bdc33b..da91adb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-06 Tor Lillqvist + + * glib/gslice.c: Move the G_ENABLE_DEBUG ifdef inside + g_slice_debug_tree_statistics() so that the function exists (but + doesn't do anything) also in a non-debug build. (#440544) + 2007-08-03 Matthias Clasen * configure.in: Bump version diff --git a/glib/gslice.c b/glib/gslice.c index 66ed898..360ccae 100644 --- a/glib/gslice.c +++ b/glib/gslice.c @@ -1410,10 +1410,10 @@ smc_tree_remove (SmcKType key) return found_one; } -#ifdef G_ENABLE_DEBUG void g_slice_debug_tree_statistics (void) { +#ifdef G_ENABLE_DEBUG g_mutex_lock (smc_tree_mutex); if (smc_tree_root) { @@ -1469,8 +1469,8 @@ g_slice_debug_tree_statistics (void) * GSlice: MemChecker: 504.900474 branches per trunk, 98.81% utilization * GSlice: MemChecker: 4.965039 entries per branch, 1 minimum, 37 maximum */ -} #endif /* G_ENABLE_DEBUG */ +} #define __G_SLICE_C__ #include "galiasdef.c"