From bf542c7195297737547173a35fc4fec2fd6bfd17 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 Oct 2016 20:29:22 -0700 Subject: [PATCH] folly/test/ExceptionWrapperTest.cpp: avoid shadowing warnings 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/test/ExceptionWrapperTest.cpp b/folly/test/ExceptionWrapperTest.cpp index ebbfcd16..b1ee6e93 100644 --- a/folly/test/ExceptionWrapperTest.cpp +++ b/folly/test/ExceptionWrapperTest.cpp @@ -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); } } -- 2.34.1