[PATCH 1/7] Remove the VOID macro
Mike Hommey
mh+jemalloc at glandium.org
Mon Apr 30 03:38:25 PDT 2012
From: Mike Hommey <mh at glandium.org>
Windows headers define a VOID macro.
---
src/ctl.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/ctl.c b/src/ctl.c
index 2734604..dddf3be 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -842,11 +842,6 @@ ctl_boot(void)
} \
} while (0)
-#define VOID() do { \
- READONLY(); \
- WRITEONLY(); \
-} while (0)
-
#define READ(v, t) do { \
if (oldp != NULL && oldlenp != NULL) { \
if (*oldlenp != sizeof(t)) { \
@@ -1049,7 +1044,8 @@ thread_tcache_flush_ctl(const size_t *mib, size_t miblen, void *oldp,
if (config_tcache == false)
return (ENOENT);
- VOID();
+ READONLY();
+ WRITEONLY();
tcache_flush();
--
1.7.10
More information about the jemalloc-discuss
mailing list