Skip to content

Commit

Permalink
Fix warning showed with GCC10 (apache#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 and trevor-m committed Mar 2, 2021
1 parent 1ff819a commit 93c2554
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 93c2554

Please sign in to comment.