Bug 791091 - Fix build warnings in XPConnect. r=jorendorff
authorAndrew Quartey <andrew.quartey@gmail.com>
Fri, 14 Sep 2012 15:00:01 -0400
changeset 107217 2a64d6b2f11049369920ec2ce4e2fa5830c9ae73
parent 107216 0b3f5ceb618a55680997e1ca470585c526182f14
child 107218 d3d5b29a2a0dc3b486d9243212b164a19245af4b
push id74
push usershu@rfrn.org
push dateTue, 18 Sep 2012 19:23:47 +0000
reviewersjorendorff
bugs791091
milestone18.0a1
Bug 791091 - Fix build warnings in XPConnect. r=jorendorff
js/xpconnect/src/XPCComponents.cpp
js/xpconnect/src/XPCStack.cpp
--- a/js/xpconnect/src/XPCComponents.cpp
+++ b/js/xpconnect/src/XPCComponents.cpp
@@ -4427,17 +4427,17 @@ SetBoolOption(JSContext* cx, uint32_t aO
 GENERATE_JSOPTION_GETTER_SETTER(Strict, JSOPTION_STRICT)
 GENERATE_JSOPTION_GETTER_SETTER(Werror, JSOPTION_WERROR)
 GENERATE_JSOPTION_GETTER_SETTER(Atline, JSOPTION_ATLINE)
 GENERATE_JSOPTION_GETTER_SETTER(Xml, JSOPTION_MOAR_XML)
 GENERATE_JSOPTION_GETTER_SETTER(Relimit, JSOPTION_RELIMIT)
 GENERATE_JSOPTION_GETTER_SETTER(Methodjit, JSOPTION_METHODJIT)
 GENERATE_JSOPTION_GETTER_SETTER(Methodjit_always, JSOPTION_METHODJIT_ALWAYS)
 GENERATE_JSOPTION_GETTER_SETTER(Strict_mode, JSOPTION_STRICT_MODE)
-GENERATE_JSOPTION_GETTER_SETTER(Ion, JSOPTION_ION);
+GENERATE_JSOPTION_GETTER_SETTER(Ion, JSOPTION_ION)
 
 #undef GENERATE_JSOPTION_GETTER_SETTER
 
 NS_IMETHODIMP
 nsXPCComponents_Utils::SetGCZeal(int32_t aValue, JSContext* cx)
 {
 #ifdef JS_GC_ZEAL
     JS_SetGCZeal(cx, uint8_t(aValue), JS_DEFAULT_ZEAL_FREQ);
--- a/js/xpconnect/src/XPCStack.cpp
+++ b/js/xpconnect/src/XPCStack.cpp
@@ -88,17 +88,16 @@ XPCJSStackFrame::~XPCJSStackFrame()
 }
 
 NS_IMPL_THREADSAFE_ISUPPORTS1(XPCJSStackFrame, nsIStackFrame)
 
 nsresult
 XPCJSStackFrame::CreateStack(JSContext* cx, XPCJSStackFrame** stack)
 {
     static const unsigned MAX_FRAMES = 100;
-    unsigned numFrames = 0;
 
     nsRefPtr<XPCJSStackFrame> first = new XPCJSStackFrame();
     nsRefPtr<XPCJSStackFrame> self = first;
 
     JS::StackDescription* desc = JS::DescribeStack(cx, MAX_FRAMES);
     if (!desc)
         return NS_ERROR_FAILURE;