Bug 810644 followup to fix -Werror red in opt builds. r=bustage
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 03 Jan 2013 14:41:02 -0500
changeset 123053 8dd151b3ce40d21b9675edee1c150fb0c5f2e64d
parent 123052 ac40d537b30a2196c47b577c43547a519ebcfdfb
child 123054 97d2ac9d16c48485218c0f960c461d9cbd1b2bb2
push idunknown
push userunknown
push dateunknown
reviewersbustage
bugs810644
milestone20.0a1
Bug 810644 followup to fix -Werror red in opt builds. r=bustage
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -1385,17 +1385,17 @@ nsGlobalWindow::UnmarkGrayTimers()
 {
   for (nsTimeout* timeout = mTimeouts.getFirst();
        timeout;
        timeout = timeout->getNext()) {
     if (timeout->mScriptHandler) {
       Function* f = timeout->mScriptHandler->GetCallback();
       if (f) {
         // Callable() already does xpc_UnmarkGrayObject.
-        JSObject* o = f->Callable();
+        DebugOnly<JSObject*> o = f->Callable();
         MOZ_ASSERT(!xpc_IsGrayGCThing(o), "Should have been unmarked");
       }
     }
   }
 }
 
 //*****************************************************************************
 // nsGlobalWindow::nsIScriptGlobalObject