From: Jim Meyering Date: Thu, 3 Nov 2016 02:00:24 +0000 (-0700) Subject: folly/test/ExceptionWrapperBenchmark.cpp: avoid shadowing warnings X-Git-Tag: v2016.11.07.00~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=908783ccbb57ab797c88806119f9294e85e6089a;p=folly.git folly/test/ExceptionWrapperBenchmark.cpp: avoid shadowing warnings Reviewed By: jsedgwick Differential Revision: D4120563 fbshipit-source-id: c97645a068662e41d5038bcd1e9805bdf6f0490c --- 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&) { } } });