Skip to content

Commit

Permalink
Remove unused exception parameter from openr/common/MainUtil.cpp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jan 23, 2024
1 parent 4cfcdc3 commit a88716a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openr/common/MainUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a88716a

Please sign in to comment.