Bug 1407578 - Fix build error due to unused variable. r=jorendorff
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 11 Oct 2017 10:17:28 -0400
changeset 385559 2057d4ff6717a1c21bf82e3a96f71fe256ce0b50
parent 385558 ef96d2697a9db7dea3d08f0fc2dad4daca099246
child 385560 70b93f9bfa0c54bb994096249907f2b1897c5368
push id32662
push userryanvm@gmail.com
push dateWed, 11 Oct 2017 21:53:47 +0000
treeherdermozilla-central@3d918ff5d634 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1407578
milestone58.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 1407578 - Fix build error due to unused variable. r=jorendorff MozReview-Commit-ID: 6tpEC7i3Mgh
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -842,17 +842,17 @@ JS_WrapValue(JSContext* cx, MutableHandl
 }
 
 static void
 ReleaseAssertObjectHasNoWrappers(JSContext* cx, HandleObject target)
 {
     RootedValue origv(cx, ObjectValue(*target));
 
     for (CompartmentsIter c(cx->runtime(), SkipAtoms); !c.done(); c.next()) {
-        if (WrapperMap::Ptr wp = c->lookupWrapper(origv))
+        if (c->lookupWrapper(origv))
             MOZ_CRASH("wrapper found for target object");
     }
 }
 
 /*
  * Brain transplants. Not for beginners or the squeamish.
  *
  * Sometimes a web spec requires us to transplant an object from one