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.

Reviewed By: dtolnay

Differential Revision: D87273133

…b/packages/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.

Reviewed By: dtolnay

Differential Revision: D87273133
@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 18, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 18, 2025

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

meta-codesync bot pushed a commit to facebook/hermes that referenced this pull request Nov 18, 2025
…b/packages/react-native/React/CxxModule/RCTCxxUtils.mm

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

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

fbshipit-source-id: eb27f9e0be8e5b6a41aa4a9d0af88ef64381fe15
meta-codesync bot pushed a commit to facebook/hermes that referenced this pull request Nov 18, 2025
…b/packages/react-native/React/CxxModule/RCTCxxUtils.mm

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

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

fbshipit-source-id: eb27f9e0be8e5b6a41aa4a9d0af88ef64381fe15
@meta-codesync meta-codesync bot closed this in 66f6285 Nov 18, 2025
@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 18, 2025
@react-native-bot
Copy link
Collaborator

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

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

@meta-codesync
Copy link

meta-codesync bot commented Nov 18, 2025

This pull request has been merged in 66f6285.

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