Skip to content

Commit

Permalink
Fix warning showed with GCC10 (#7336)
Browse files Browse the repository at this point in the history
catching polymorphic type 'struct dmlc::Error' by value
  • Loading branch information
ggardet authored Jan 25, 2021
1 parent f3b852d commit da446af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpp/ir_functor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ TEST(IRF, ExprTransform) {
try {
f(z - 1, 2);
LOG(FATAL) << "should fail";
} catch (dmlc::Error) {
} catch (dmlc::Error&) {
}
}

Expand Down

0 comments on commit da446af

Please sign in to comment.