From aa1af5fd4a7b801cc506cb511eb09f64c89648b6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 30 Jun 2015 15:31:50 -0600 Subject: [PATCH] smalloc: fix unused 'int_mask' warning if redzoning is turned off Signed-off-by: Jens Axboe --- smalloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smalloc.c b/smalloc.c index 447d5c55..6bf66fcf 100644 --- a/smalloc.c +++ b/smalloc.c @@ -32,7 +32,9 @@ #define SMALLOC_POST_RED 0x5aa55aa5U unsigned int smalloc_pool_size = INITIAL_SIZE; +#ifdef SMALLOC_REDZONE static const int int_mask = sizeof(int) - 1; +#endif struct pool { struct fio_mutex *lock; /* protects this pool */ -- 2.25.1