From a88716adab8379507e926d0201d905aa0fa58652 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Tue, 23 Jan 2024 08:35:04 -0800 Subject: [PATCH] Remove unused exception parameter from openr/common/MainUtil.cpp Summary: `-Wunused-exception-parameter` has identified an unused exception parameter. This diff removes it. This: ``` try { ... } catch (exception& e) { // no use of e } ``` should instead be written as ``` } catch (exception&) { ``` If the code compiles, this is safe to land. Reviewed By: dmm-fb Differential Revision: D52957772 fbshipit-source-id: bb6fdec9d2d4398db8bf95f9929af7227274f8fc --- openr/common/MainUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openr/common/MainUtil.cpp b/openr/common/MainUtil.cpp index 9f043f1e728..c4f201e78e1 100644 --- a/openr/common/MainUtil.cpp +++ b/openr/common/MainUtil.cpp @@ -26,7 +26,7 @@ waitForFibService(const folly::EventBase& signalHandlerEvb, int port) { openr::Fib::createFibClient(evb, client, port); try { switchState = client->sync_getSwitchRunState(); - } catch (const std::exception& e) { + } catch (const std::exception&) { } // sleep override std::this_thread::sleep_for(std::chrono::seconds(1));