[Scummvm-cvs-logs] SF.net SVN: scummvm:[42056] scummvm/trunk/common/hashmap.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Jul 3 13:05:59 CEST 2009


Revision: 42056
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42056&view=rev
Author:   fingolfin
Date:     2009-07-03 11:05:59 +0000 (Fri, 03 Jul 2009)

Log Message:
-----------
If NDEBUG is #defined, then assert does nothing, leading to warnings about 'old_size' not being used -> fix that

Modified Paths:
--------------
    scummvm/trunk/common/hashmap.h

Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h	2009-07-03 10:41:03 UTC (rev 42055)
+++ scummvm/trunk/common/hashmap.h	2009-07-03 11:05:59 UTC (rev 42056)
@@ -383,7 +383,9 @@
 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;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list