folly/test/ExceptionWrapperBenchmark.cpp: avoid shadowing warnings
authorJim Meyering <meyering@fb.com>
Thu, 3 Nov 2016 02:00:24 +0000 (19:00 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 3 Nov 2016 02:08:37 +0000 (19:08 -0700)
Reviewed By: jsedgwick

Differential Revision: D4120563

fbshipit-source-id: c97645a068662e41d5038bcd1e9805bdf6f0490c

folly/test/ExceptionWrapperBenchmark.cpp

index fbd72820c4cdce9010657462c114fb673bcd477d..6d6fc786e62abd89b9640dc92680508e4d1534b5 100644 (file)
@@ -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&) {
           }
         }
       });