Skip to content

Conversation

@r-barnes
Copy link
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.

Differential Revision: D85813832

…s/react-native/React/CxxModule/RCTCxxUtils.mm

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.

Differential Revision: D85813832
@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 Nov 13, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 13, 2025

@r-barnes has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85813832.

@meta-codesync
Copy link

meta-codesync bot commented Nov 13, 2025

This pull request has been merged in dd6805d.

@react-native-bot
Copy link
Collaborator

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

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

douglowder pushed a commit to react-native-tvos/react-native-tvos that referenced this pull request Nov 15, 2025
…s/react-native/React/CxxModule/RCTCxxUtils.mm (#54539)

Summary:
Pull Request resolved: facebook/react-native#54539

`-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.

Differential Revision: D85813832

fbshipit-source-id: 4edbaaf59a06db619e85d272e77b55081623fed5
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants