Bug 577913 mark DEBUG only variables as ifdef DEBUG in xpconnect; r=mrbkap a=jst

--HG--
extra : rebase_source : ce14e3eb2ea17a5350cbb85af355b89c5d002fce
This commit is contained in:
timeless@mozdev.org 2010-07-11 15:42:47 +03:00
parent c4d09902c6
commit bf00e23933

View File

@ -661,7 +661,11 @@ XPCNativeSet::GetNewOrUsed(XPCCallContext& ccx, nsIClassInfo* classInfo)
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!");
}