Skip to content

Commit 46989d8

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused exception parameter from multifeed/tools/zdb_dumper/main.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: D58830970 fbshipit-source-id: 94d55ac80b8bd98f08cdb8c0acb2ecfa3dfb14a4
1 parent e116464 commit 46989d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multipy/runtime/test_deploy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ TEST(TorchpyTest, TaggingRace) {
283283
try {
284284
I.fromIValue(t);
285285
success++;
286-
} catch (const std::runtime_error& e) {
286+
} catch (const std::runtime_error&) {
287287
failed++;
288288
}
289289
}

0 commit comments

Comments
 (0)