Bug 792090 - Ignore unused result in CGProxy...PresenceChecker. r=bz
authorAndrew McCreight <amccreight@mozilla.com>
Mon, 12 Nov 2012 14:21:46 -0800
changeset 113042 e997348bdeaa20335a2fbd1169166055a6f830ab
parent 113041 0c3592db8b447ac3a6a6dba2e0fa0f7434e5bb96
child 113043 8c5ad849146fdb57760cda69cf11bea0f8b92c33
push id17905
push useramccreight@mozilla.com
push dateTue, 13 Nov 2012 01:20:03 +0000
treeherdermozilla-inbound@e997348bdeaa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs792090
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 792090 - Ignore unused result in CGProxy...PresenceChecker. r=bz
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -5436,16 +5436,17 @@ class CGProxyIndexedGetter(CGProxyIndexe
 class CGProxyIndexedPresenceChecker(CGProxyIndexedGetter):
     """
     Class to generate a call that checks whether an indexed property exists.
 
     For now, we just delegate to CGProxyIndexedGetter
     """
     def __init__(self, descriptor):
         CGProxyIndexedGetter.__init__(self, descriptor)
+        self.cgRoot.append(CGGeneric("(void)result;"))
 
 class CGProxyIndexedSetter(CGProxyIndexedOperation):
     """
     Class to generate a call to an indexed setter.
     """
     def __init__(self, descriptor):
         CGProxyIndexedOperation.__init__(self, descriptor, 'IndexedSetter')
 
@@ -5489,16 +5490,17 @@ class CGProxyNamedGetter(CGProxyNamedOpe
 class CGProxyNamedPresenceChecker(CGProxyNamedGetter):
     """
     Class to generate a call that checks whether a named property exists.
 
     For now, we just delegate to CGProxyNamedGetter
     """
     def __init__(self, descriptor):
         CGProxyNamedGetter.__init__(self, descriptor)
+        self.cgRoot.append(CGGeneric("(void)result;"))
 
 class CGProxyNamedSetter(CGProxyNamedOperation):
     """
     Class to generate a call to a named setter.
     """
     def __init__(self, descriptor):
         CGProxyNamedOperation.__init__(self, descriptor, 'NamedSetter')