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

folly/test/ExceptionWrapperBenchmark.cpp: avoid shadowing warnings

Reviewed By: jsedgwick

Differential Revision: D4120563

fbshipit-source-id: c97645a068662e41d5038bcd1e9805bdf6f0490c
parent d53c9bd6
...@@ -106,7 +106,7 @@ BENCHMARK(exception_ptr_create_and_throw, iters) { ...@@ -106,7 +106,7 @@ BENCHMARK(exception_ptr_create_and_throw, iters) {
try { try {
std::rethrow_exception(ep); std::rethrow_exception(ep);
assert(false); assert(false);
} catch (std::runtime_error& e) { } catch (std::runtime_error&) {
} }
} }
} }
...@@ -118,7 +118,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_throw, iters) { ...@@ -118,7 +118,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_throw, iters) {
try { try {
ew.throwException(); ew.throwException();
assert(false); assert(false);
} catch (std::runtime_error& e) { } catch (std::runtime_error&) {
} }
} }
} }
...@@ -147,7 +147,7 @@ BENCHMARK(exception_ptr_create_and_throw_concurrent, iters) { ...@@ -147,7 +147,7 @@ BENCHMARK(exception_ptr_create_and_throw_concurrent, iters) {
try { try {
std::rethrow_exception(ep); std::rethrow_exception(ep);
assert(false); assert(false);
} catch (std::runtime_error& e) { } catch (std::runtime_error&) {
} }
} }
}); });
...@@ -172,7 +172,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_throw_concurrent, iters) { ...@@ -172,7 +172,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_throw_concurrent, iters) {
try { try {
ew.throwException(); ew.throwException();
assert(false); assert(false);
} catch (std::runtime_error& e) { } catch (std::runtime_error&) {
} }
} }
}); });
......
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