smalloc: fix unused 'int_mask' warning if redzoning is turned off
[fio.git] / smalloc.c
index 447d5c55fe3336986c490c068a5f919a100b55cf..6bf66fcf58013db6e318d69c62b87dc68fb3357f 100644 (file)
--- 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 */