From d863e59794c276968915309d32a772cc951ee53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 28 Feb 2008 00:25:16 +0000 Subject: [PATCH] * Fixed a warning when compiled with HEAP_DEBUG turned on. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24161 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/malloc/heap.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/system/libroot/posix/malloc/heap.h b/src/system/libroot/posix/malloc/heap.h index d202f861ae..730c9003d7 100644 --- a/src/system/libroot/posix/malloc/heap.h +++ b/src/system/libroot/posix/malloc/heap.h @@ -178,13 +178,6 @@ class hoardHeap { //// Members //// -#if HEAP_DEBUG - // For sanity checking. - const unsigned long _magic; -#else -# define _magic HEAP_MAGIC -#endif - // Heap statistics. heapStats _stats[SIZE_CLASSES]; @@ -204,6 +197,13 @@ class hoardHeap { // The current least-empty superblock bin. int _leastEmptyBin[SIZE_CLASSES]; +#if HEAP_DEBUG + // For sanity checking. + const unsigned long _magic; +#else +# define _magic HEAP_MAGIC +#endif + // The lookup table for size classes. static size_t _sizeTable[SIZE_CLASSES];