From 90856894abe8497557ddcbcfad3de8d02e161b87 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Wed, 5 Apr 2006 02:07:30 +0000 Subject: [PATCH] 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 --- ChangeLog | 14 ++++++++++++++ src/alloc-slab.c | 1 + 2 files changed, 15 insertions(+) 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 * -- 2.20.1