Don't declare a variable for exceptions we discard
[folly.git] / folly / FormatArg.h
index 701654b3397453a8a59e7c924c0a6ff08ff858dc..89c7e9337b5a3486f2841ba1da2b00889d5dd827 100644 (file)
@@ -267,7 +267,7 @@ inline int FormatArg::splitIntKey() {
   }
   try {
     return to<int>(doSplitKey<true>());
-  } catch (const std::out_of_range& e) {
+  } catch (const std::out_of_range&) {
     error("integer key required");
     return 0;  // unreached
   }