Bug 816888: Remove unused variable 'script' from XPCShellEnvironment.cpp. r=terrence
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 30 Nov 2012 09:59:01 -0800
changeset 114620 de5b83cdbfead9654c06f6f2dc53812c7cd31ede
parent 114619 167b31ff36c2be9f64e0792c71fb1db6eccca1f4
child 114621 534c895a396a79f7bca7341f29ddbddb8b03f5d8
push id23926
push userryanvm@gmail.com
push dateSat, 01 Dec 2012 15:27:30 +0000
treeherdermozilla-central@ecdf0e332f17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersterrence
bugs816888
milestone20.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 816888: Remove unused variable 'script' from XPCShellEnvironment.cpp. r=terrence
ipc/testshell/Makefile.in
ipc/testshell/XPCShellEnvironment.cpp
--- a/ipc/testshell/Makefile.in
+++ b/ipc/testshell/Makefile.in
@@ -2,16 +2,17 @@
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 DEPTH = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir = @srcdir@
 VPATH = @srcdir@
 relativesrcdir = @relativesrcdir@
+FAIL_ON_WARNINGS = 1
 
 include $(DEPTH)/config/autoconf.mk
 
 MODULE = ipcshell
 LIBRARY_NAME = ipcshell_s
 FORCE_STATIC_LIB = 1
 LIBXUL_LIBRARY = 1
 EXPORT_LIBRARY = 1
--- a/ipc/testshell/XPCShellEnvironment.cpp
+++ b/ipc/testshell/XPCShellEnvironment.cpp
@@ -273,17 +273,16 @@ Dump(JSContext *cx,
 
 static JSBool
 Load(JSContext *cx,
      unsigned argc,
      jsval *vp)
 {
     unsigned i;
     JSString *str;
-    JSScript *script;
     jsval result;
     FILE *file;
 
     JSObject *obj = JS_THIS_OBJECT(cx, vp);
     if (!obj)
         return JS_FALSE;
 
     jsval *argv = JS_ARGV(cx, vp);