From: Jens Axboe Date: Tue, 30 Jun 2015 21:31:50 +0000 (-0600) Subject: smalloc: fix unused 'int_mask' warning if redzoning is turned off X-Git-Tag: fio-2.2.10~49 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=aa1af5fd4a7b801cc506cb511eb09f64c89648b6 smalloc: fix unused 'int_mask' warning if redzoning is turned off Signed-off-by: Jens Axboe --- 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 */