folly/test/ExceptionWrapperTest.cpp: avoid shadowing warnings
authorJim Meyering <meyering@fb.com>
Wed, 19 Oct 2016 03:29:22 +0000 (20:29 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 19 Oct 2016 03:38:54 +0000 (20:38 -0700)
Summary: Fix warnings exposed by the upstream-proposed -Wshadow-compatible-local option.

Reviewed By: igorsugak

Differential Revision: D4041789

fbshipit-source-id: 79eefaccbe2ca27993ab102ac1b6e3caf3bfb7ce

folly/test/ExceptionWrapperTest.cpp

index ebbfcd1669fdeefd865e3733d42c643d7d496cd1..b1ee6e936d1528a0f39377140e4a90a0d786285c 100644 (file)
@@ -61,9 +61,9 @@ TEST(ExceptionWrapper, throw_test) {
 
   try {
     container[0].throwException();
-  } catch (std::runtime_error& e) {
+  } catch (std::runtime_error& err) {
     std::string expected = "payload";
-    std::string actual = e.what();
+    std::string actual = err.what();
     EXPECT_EQ(expected, actual);
   }
 }