summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-06-04 02:39:14 (GMT)
committerJason Evans <jasone@canonware.com>2016-06-06 04:00:02 (GMT)
commitf02fec8839856fad3106f429f9316e844557e99f (patch)
treefadb98534e6fc4def3bd27dca105353841bab296
parent8835cf3bed1888fc0110b0c59dbf2ce1288a7a8c (diff)
downloadjemalloc-f02fec8839856fad3106f429f9316e844557e99f.zip
jemalloc-f02fec8839856fad3106f429f9316e844557e99f.tar.gz
jemalloc-f02fec8839856fad3106f429f9316e844557e99f.tar.bz2
Silence a bogus compiler warning.
-rw-r--r--src/ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ctl.c b/src/ctl.c
index 813d5fa..535f1ea 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -1646,7 +1646,9 @@ arena_i_extent_hooks_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
if (arena_ind < narenas_total_get() && (arena =
arena_get(tsd_tsdn(tsd), arena_ind, false)) != NULL) {
if (newp != NULL) {
- extent_hooks_t *old_extent_hooks, *new_extent_hooks;
+ extent_hooks_t *old_extent_hooks;
+ extent_hooks_t *new_extent_hooks
+ JEMALLOC_CC_SILENCE_INIT(NULL);
WRITE(new_extent_hooks, extent_hooks_t *);
old_extent_hooks = extent_hooks_set(arena,
new_extent_hooks);