Bug 669412 followup to followup: move now-unused-in-default-build-config variable inside #ifdef, to fix new unused variable build warning. rs=bent
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 27 Sep 2011 13:58:14 -0700
changeset 77733 bb8d9e770b83bf737811bc9fc702f8589b769975
parent 77732 4ecbff48c0f1623e300d1d164ad8d1b38b2949c8
child 77734 1a3850b04dc05b1f2a4315027ad73c3a528fe213
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersbent
bugs669412
milestone10.0a1
Bug 669412 followup to followup: move now-unused-in-default-build-config variable inside #ifdef, to fix new unused variable build warning. rs=bent
ipc/testshell/XPCShellEnvironment.cpp
--- a/ipc/testshell/XPCShellEnvironment.cpp
+++ b/ipc/testshell/XPCShellEnvironment.cpp
@@ -402,19 +402,19 @@ DumpXPC(JSContext *cx,
     return JS_TRUE;
 }
 
 static JSBool
 GC(JSContext *cx,
    uintN argc,
    jsval *vp)
 {
-    JSRuntime *rt = JS_GetRuntime(cx);
     JS_GC(cx);
 #ifdef JS_GCMETER
+    JSRuntime *rt = JS_GetRuntime(cx);
     js_DumpGCStats(rt, stdout);
 #endif
     JS_SET_RVAL(cx, vp, JSVAL_VOID);
     return JS_TRUE;
 }
 
 #ifdef JS_GC_ZEAL
 static JSBool