diff options
author | Moonchild <mcwerewolf@wolfbeast.com> | 2019-03-14 15:23:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 15:23:17 +0100 |
commit | 7650a03115a466a89974e240894f1d5e0063fdef (patch) | |
tree | ad7d4f07c829208649d77a06b348e874ca80340b /js/src | |
parent | 91cbd86a5e0e851904015fc98f3b4bb4422e584b (diff) | |
parent | cf36d986290114b6dd1fcdac6c08283178629742 (diff) | |
download | UXP-7650a03115a466a89974e240894f1d5e0063fdef.tar UXP-7650a03115a466a89974e240894f1d5e0063fdef.tar.gz UXP-7650a03115a466a89974e240894f1d5e0063fdef.tar.lz UXP-7650a03115a466a89974e240894f1d5e0063fdef.tar.xz UXP-7650a03115a466a89974e240894f1d5e0063fdef.zip |
Merge pull request #1005 from adeshkp/compiler-warnings
Fix some compiler warnings
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/jit/StupidAllocator.cpp | 1 | ||||
-rw-r--r-- | js/src/vm/ObjectGroup.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/js/src/jit/StupidAllocator.cpp b/js/src/jit/StupidAllocator.cpp index 8e3ea6286..55431e8e0 100644 --- a/js/src/jit/StupidAllocator.cpp +++ b/js/src/jit/StupidAllocator.cpp @@ -407,7 +407,6 @@ StupidAllocator::allocateForDefinition(LInstruction* ins, LDefinition* def) { uint32_t vreg = def->virtualRegister(); - CodePosition from; if ((def->output()->isRegister() && def->policy() == LDefinition::FIXED) || def->policy() == LDefinition::MUST_REUSE_INPUT) { diff --git a/js/src/vm/ObjectGroup.cpp b/js/src/vm/ObjectGroup.cpp index 1fbf8976b..46159a972 100644 --- a/js/src/vm/ObjectGroup.cpp +++ b/js/src/vm/ObjectGroup.cpp @@ -495,7 +495,6 @@ ObjectGroup::defaultNewGroup(ExclusiveContext* cx, const Class* clasp, if (associated->is<JSFunction>()) { // Canonicalize new functions to use the original one associated with its script. - JSFunction* fun = &associated->as<JSFunction>(); associated = associated->as<JSFunction>().maybeCanonicalFunction(); // If we have previously cleared the 'new' script information for this |