Bug 577913 mark DEBUG only variables as ifdef DEBUG in xpconnect; r=mrbkap a=jst
authortimeless@mozdev.org
Sun, 11 Jul 2010 15:42:47 +0300
changeset 61797 e5ce46fd72037b04f98a0988e75886858fcf65c2
parent 61796 f4c949162937888ad4574266f3c2c3515784c147
child 61798 db765563b6fdb027901a40ca54aa32397abddab0
push idunknown
push userunknown
push dateunknown
reviewersmrbkap, jst
bugs577913
milestone2.0b12pre
Bug 577913 mark DEBUG only variables as ifdef DEBUG in xpconnect; r=mrbkap a=jst
js/src/xpconnect/src/xpcwrappednativeinfo.cpp
--- a/js/src/xpconnect/src/xpcwrappednativeinfo.cpp
+++ b/js/src/xpconnect/src/xpcwrappednativeinfo.cpp
@@ -656,17 +656,21 @@ XPCNativeSet::GetNewOrUsed(XPCCallContex
             set = GetNewOrUsed(ccx, &NS_GET_IID(nsISupports));
     }
     else
         set = GetNewOrUsed(ccx, &NS_GET_IID(nsISupports));
 
     if(set)
     {   // scoped lock
         XPCAutoLock lock(rt->GetMapLock());
-        XPCNativeSet* set2 = map->Add(classInfo, set);
+
+#ifdef DEBUG
+        XPCNativeSet* set2 =
+#endif
+          map->Add(classInfo, set);
         NS_ASSERTION(set2, "failed to add our set!");
         NS_ASSERTION(set2 == set, "hashtables inconsistent!");
     }
 
 out:
     if(iidArray)
         NS_FREE_XPCOM_ALLOCATED_POINTER_ARRAY(iidCount, iidArray);
     if(interfaceArray)