From: Michael Poole Date: Wed, 5 Apr 2006 01:59:54 +0000 (+0000) Subject: Fix compilation error with slab allocator and no debugging. X-Git-Tag: v1.4.0-rc1~148 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=251b600ed03411ae48b2bfd3f92e29cc85bb4319 Fix compilation error with slab allocator and no debugging. src/alloc-slab.c (verify): Undefine as a macro before defining as a function. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-8 --- diff --git a/ChangeLog b/ChangeLog index a395c9e..aea3d18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-04-05 01:59:54 GMT Michael Poole patch-8 + + Summary: + Fix compilation error with slab allocator and no debugging. + Revision: + srvx--devo--1.3--patch-8 + + src/alloc-slab.c (verify): Undefine as a macro before defining as a + function. + + modified files: + ChangeLog src/alloc-slab.c + + 2006-04-05 00:24:50 GMT Michael Poole patch-7 Summary: diff --git a/src/alloc-slab.c b/src/alloc-slab.c index 144a237..2b92319 100644 --- a/src/alloc-slab.c +++ b/src/alloc-slab.c @@ -431,6 +431,8 @@ slab_free(const char *file, unsigned int line, void *ptr) } } +/* Undefine the verify macro in case we're not debugging. */ +#undef verify void verify(const void *ptr) {