From: Michael Poole Date: Wed, 5 Apr 2006 02:07:30 +0000 (+0000) Subject: Fix a possible warning without debugging. X-Git-Tag: v1.4.0-rc1~146 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=90856894abe8497557ddcbcfad3de8d02e161b87 Fix a possible warning without debugging. src/alloc-slab.c (slab_unalloc): If assert() is #define'd to be empty, then size is unused. Include a (void)size to quash a warning. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-10 --- diff --git a/ChangeLog b/ChangeLog index dec79b3..6185dc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-04-05 02:07:30 GMT Michael Poole patch-10 + + Summary: + Fix a possible warning without debugging. + Revision: + srvx--devo--1.3--patch-10 + + src/alloc-slab.c (slab_unalloc): If assert() is #define'd to be empty, + then size is unused. Include a (void)size to quash a warning. + + modified files: + ChangeLog src/alloc-slab.c + + 2006-04-05 02:02:21 GMT Michael Poole patch-9 Summary: diff --git a/src/alloc-slab.c b/src/alloc-slab.c index 2b92319..919ffe1 100644 --- a/src/alloc-slab.c +++ b/src/alloc-slab.c @@ -331,6 +331,7 @@ slab_unalloc(void *ptr, size_t size) free_slab_count++; #endif } + (void)size; } void *