1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mfbt/double-conversion/fix-gcc-warnings.patch Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +diff --git a/a/mfbt/double-conversion/strtod.cc b/inbound/mfbt/double-conversion/strtod.cc 1.5 +index 9758989..97fa4a5 100644 1.6 +--- a/a/mfbt/double-conversion/strtod.cc 1.7 ++++ b/inbound/mfbt/double-conversion/strtod.cc 1.8 +@@ -501,17 +501,19 @@ float Strtof(Vector<const char> buffer, int exponent) { 1.9 + // if they would round to the same float. If the guess is not correct we have 1.10 + // to look at four values (since two different doubles could be the correct 1.11 + // double). 1.12 + 1.13 + double double_next = Double(double_guess).NextDouble(); 1.14 + double double_previous = Double(double_guess).PreviousDouble(); 1.15 + 1.16 + float f1 = static_cast<float>(double_previous); 1.17 ++#if defined(DEBUG) 1.18 + float f2 = float_guess; 1.19 ++#endif 1.20 + float f3 = static_cast<float>(double_next); 1.21 + float f4; 1.22 + if (is_correct) { 1.23 + f4 = f3; 1.24 + } else { 1.25 + double double_next2 = Double(double_next).NextDouble(); 1.26 + f4 = static_cast<float>(double_next2); 1.27 + }