From 908783ccbb57ab797c88806119f9294e85e6089a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 2 Nov 2016 19:00:24 -0700 Subject: [PATCH] folly/test/ExceptionWrapperBenchmark.cpp: avoid shadowing warnings Reviewed By: jsedgwick Differential Revision: D4120563 fbshipit-source-id: c97645a068662e41d5038bcd1e9805bdf6f0490c --- folly/test/ExceptionWrapperBenchmark.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/folly/test/ExceptionWrapperBenchmark.cpp b/folly/test/ExceptionWrapperBenchmark.cpp index fbd72820..6d6fc786 100644 --- a/folly/test/ExceptionWrapperBenchmark.cpp +++ b/folly/test/ExceptionWrapperBenchmark.cpp @@ -106,7 +106,7 @@ BENCHMARK(exception_ptr_create_and_throw, iters) { try { std::rethrow_exception(ep); assert(false); - } catch (std::runtime_error& e) { + } catch (std::runtime_error&) { } } } @@ -118,7 +118,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_throw, iters) { try { ew.throwException(); assert(false); - } catch (std::runtime_error& e) { + } catch (std::runtime_error&) { } } } @@ -147,7 +147,7 @@ BENCHMARK(exception_ptr_create_and_throw_concurrent, iters) { try { std::rethrow_exception(ep); assert(false); - } catch (std::runtime_error& e) { + } catch (std::runtime_error&) { } } }); @@ -172,7 +172,7 @@ BENCHMARK_RELATIVE(exception_wrapper_create_and_throw_concurrent, iters) { try { ew.throwException(); assert(false); - } catch (std::runtime_error& e) { + } catch (std::runtime_error&) { } } }); -- 2.34.1