Don't declare a variable for exceptions we discard
[folly.git] / folly / test / StringTest.cpp
index 415c6c3df05051e28b051f5fb38102526db7bb3e..2341c4891a1949b37816b46f2ef6af40d342d2a4 100644 (file)
@@ -437,7 +437,7 @@ TEST(PrettyToDouble, Basic) {
         try{
           recoveredX = prettyToDouble(prettyPrint(x, formatType, addSpace),
                                              formatType);
-        } catch (std::range_error &ex){
+        } catch (std::range_error&) {
           EXPECT_TRUE(false);
         }
         double relativeError = (x - recoveredX) / x;