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

Commit cd3abd5

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused exception parameter from xplat/safe_image/io/ImageInfo.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: dmm-fb Differential Revision: D60516143 fbshipit-source-id: 14f13290af21103d1c1ad38d708817376b3d6681
1 parent 0f76111 commit cd3abd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xplat/FlipperTests/FlipperConnectionManagerImplTerminationTests.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ TEST_F(
4444
state,
4545
contextStore);
4646
FAIL();
47-
} catch (std::invalid_argument& e) {
47+
} catch (std::invalid_argument&) {
4848
// Pass test
4949
}
5050
try {
@@ -53,7 +53,7 @@ TEST_F(
5353
state,
5454
contextStore);
5555
FAIL();
56-
} catch (std::invalid_argument& e) {
56+
} catch (std::invalid_argument&) {
5757
// Pass test
5858
}
5959
}

0 commit comments

Comments
 (0)