Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Remove unused exception parameter from xplat/safe_image/io/ImageInfo.cpp
Browse files Browse the repository at this point in the history
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: D60516143

fbshipit-source-id: 14f13290af21103d1c1ad38d708817376b3d6681
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jul 31, 2024
1 parent 0f76111 commit cd3abd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ TEST_F(
state,
contextStore);
FAIL();
} catch (std::invalid_argument& e) {
} catch (std::invalid_argument&) {
// Pass test
}
try {
Expand All @@ -53,7 +53,7 @@ TEST_F(
state,
contextStore);
FAIL();
} catch (std::invalid_argument& e) {
} catch (std::invalid_argument&) {
// Pass test
}
}
Expand Down

0 comments on commit cd3abd5

Please sign in to comment.