Skip to content

Commit

Permalink
Remove unused exception parameter from pytorch/text/examples/libtorch…
Browse files Browse the repository at this point in the history
…text/tokenizer/main.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: D58830948

fbshipit-source-id: 129097585ca4b0ae2ef3ef1621c290ea52375282
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Sep 1, 2024
1 parent 66be096 commit eda260c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quic/server/handshake/ServerHandshake.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace quic {
* auto writeBytes = handshake->getWriteBytes();
* auto hanshakeState = handshake->getHandshakeState();
* writeBytesToSocket(writeBytes);
* } catch (const QuicTransportException& ex) {
* } catch (const QuicTransportException&) {
* ....
* }
* }
Expand Down

0 comments on commit eda260c

Please sign in to comment.