projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94815a5
)
smalloc: fix unused 'int_mask' warning if redzoning is turned off
author
Jens Axboe
<axboe@fb.com>
Tue, 30 Jun 2015 21:31:50 +0000
(15:31 -0600)
committer
Jens Axboe
<axboe@fb.com>
Tue, 30 Jun 2015 21:31:50 +0000
(15:31 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
smalloc.c
patch
|
blob
|
blame
|
history
diff --git
a/smalloc.c
b/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 */