From 70fd03a5e793052c0d6ba1de7d7e72e065d94f2b Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Sat, 25 May 2013 12:09:41 -0700 Subject: [PATCH] fix unused variables in third-party --- hphp/third_party/double-conversion/src/strtod.cc | 2 ++ hphp/third_party/folly/folly/experimental/symbolizer/Dwarf.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hphp/third_party/double-conversion/src/strtod.cc b/hphp/third_party/double-conversion/src/strtod.cc index 9758989f7..7f8ccab56 100644 --- a/hphp/third_party/double-conversion/src/strtod.cc +++ b/hphp/third_party/double-conversion/src/strtod.cc @@ -506,7 +506,9 @@ float Strtof(Vector buffer, int exponent) { double double_previous = Double(double_guess).PreviousDouble(); float f1 = static_cast(double_previous); +#ifdef DEBUG float f2 = float_guess; +#endif float f3 = static_cast(double_next); float f4; if (is_correct) { diff --git a/hphp/third_party/folly/folly/experimental/symbolizer/Dwarf.cpp b/hphp/third_party/folly/folly/experimental/symbolizer/Dwarf.cpp index fd78907c5..0e3b0a0ab 100644 --- a/hphp/third_party/folly/folly/experimental/symbolizer/Dwarf.cpp +++ b/hphp/third_party/folly/folly/experimental/symbolizer/Dwarf.cpp @@ -639,7 +639,6 @@ bool Dwarf::LineNumberVM::nextDefineFile(folly::StringPiece& program, auto length = readULEB(program); // the opcode itself should be included in the length, so length >= 1 enforce(length != 0, "invalid extended opcode length"); - auto extendedOpcode = read(program); --length; if (opcode == DW_LNE_define_file) {