Skip to content

Commit

Permalink
Fix unreferenced local variable
Browse files Browse the repository at this point in the history
Summary:
Some warnings popped up in my local Windows build today:
```
C:\open\x\xplat\wangle\acceptor\Acceptor.cpp(379): warning C4101: 'ex': unreferenced local variable
C:\open\x\xplat\wangle\acceptor\Acceptor.cpp(384): warning C4101: 'ex': unreferenced local variable
```

Differential Revision: D50139332

fbshipit-source-id: 235c8e9e2691b18ed1c748209d82d234d4e88483
  • Loading branch information
jdonald authored and facebook-github-bot committed Oct 10, 2023
1 parent 0937674 commit 63e7fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wangle/acceptor/Acceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ static std::string logContext(folly::AsyncTransport& transport) {
int socketFd = -1;
try {
localAddr = transport.getLocalAddress().describe();
} catch (folly::AsyncSocketException& ex) {
} catch (folly::AsyncSocketException&) {
localAddr = "(unknown)";
}
try {
remoteAddr = transport.getPeerAddress().describe();
} catch (folly::AsyncSocketException& ex) {
} catch (folly::AsyncSocketException&) {
remoteAddr = "(unknown)";
}

Expand Down

0 comments on commit 63e7fa7

Please sign in to comment.