Skip to content

[codemod][lowrisk] Remove unused exception parameter from caffe2/torch/csrc/Storage.cpp#168184

Closed
r-barnes wants to merge 1 commit intopytorch:mainfrom
r-barnes:export-D87467930
Closed

[codemod][lowrisk] Remove unused exception parameter from caffe2/torch/csrc/Storage.cpp#168184
r-barnes wants to merge 1 commit intopytorch:mainfrom
r-barnes:export-D87467930

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.

Test Plan: Sandcastle

Differential Revision: D87467930

…h/csrc/Storage.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.

Test Plan: Sandcastle

Differential Revision: D87467930
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 19, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/168184

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 0825e23 with merge base 607e2e7 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Nov 19, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 19, 2025

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

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 19, 2025
@malfet
Copy link
Contributor

malfet commented Nov 19, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

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

Labels

ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged meta-exported release notes: cpp release notes category topic: improvements topic category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants