Commit bf542c71 authored by Jim Meyering's avatar Jim Meyering Committed by Facebook Github Bot

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
parent 759f0c94
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment