Skip to content

Remove unused exception parameter from hermes/unittests/API/CDPAgentTest.cpp#53213

Closed
r-barnes wants to merge 1 commit into
facebook:mainfrom
r-barnes:export-D79968851
Closed

Remove unused exception parameter from hermes/unittests/API/CDPAgentTest.cpp#53213
r-barnes wants to merge 1 commit into
facebook:mainfrom
r-barnes:export-D79968851

Conversation

@r-barnes
Copy link
Copy Markdown
Contributor

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: dtolnay

Differential Revision: D79968851

…est.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: dtolnay

Differential Revision: D79968851
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 11, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79968851

facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Aug 11, 2025
…est.cpp

Summary:
X-link: facebook/react-native#53213

`-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: dtolnay

Differential Revision: D79968851

fbshipit-source-id: 18f2e6861f099915b1aad6aba58217ba94eb10c8
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 11, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 9eb90f8.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @r-barnes in 9eb90f8

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants