Bug 861032 - Fix -Wreinterpret-base-class warning on Codegen.py. r=bz

--HG--
extra : rebase_source : c05d51d8aeed182b85333a347f0b1dfb5d6b1ef9
This commit is contained in:
Reuben Morais 2013-04-11 19:29:50 -07:00
parent 6d56f24db4
commit 3d99395f09

View File

@ -1940,7 +1940,7 @@ class CGWrapWithCacheMethod(CGAbstractMethod):
if self.descriptor.nativeOwnership == 'nsisupports':
assertISupportsInheritance = (
' MOZ_ASSERT(reinterpret_cast<nsWrapperCache*>(aObject) != aCache,\n'
' MOZ_ASSERT(reinterpret_cast<void*>(aObject) != aCache,\n'
' "nsISupports must be on our primary inheritance chain");\n')
else:
assertISupportsInheritance = ""