diff options
author | Max Horn | 2009-07-03 11:05:59 +0000 |
---|---|---|
committer | Max Horn | 2009-07-03 11:05:59 +0000 |
commit | 9b3074d929d6313422677c5fa5b1bf741884e28d (patch) | |
tree | 610fbde7a902059ca23621c563383762a8a2fc80 | |
parent | 72512db7fb578ea47f916b7f7ef070b7a4d77694 (diff) | |
download | scummvm-rg350-9b3074d929d6313422677c5fa5b1bf741884e28d.tar.gz scummvm-rg350-9b3074d929d6313422677c5fa5b1bf741884e28d.tar.bz2 scummvm-rg350-9b3074d929d6313422677c5fa5b1bf741884e28d.zip |
If NDEBUG is #defined, then assert does nothing, leading to warnings about 'old_size' not being used -> fix that
svn-id: r42056
-rw-r--r-- | common/hashmap.h | 2 |
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; |