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 electriclilies committed Feb 18, 2021
1 parent 53db95e commit a40d741
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 a40d741

Please sign in to comment.