aboutsummaryrefslogtreecommitdiff
path: root/common/hashmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/hashmap.h')
-rw-r--r--common/hashmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index fa613782cf..f5059a4bcf 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -383,7 +383,9 @@ template<class Key, class Val, class HashFunc, class EqualFunc>
void HashMap<Key, Val, HashFunc, EqualFunc>::expandStorage(uint newCapacity) {
assert(newCapacity > _mask+1);
+#ifndef NDEBUG
const uint old_size = _size;
+#endif
const uint old_mask = _mask;
Node **old_storage = _storage;