Fix compiler warnings. (#8059)
- Remove unused parameters. - Avoid comparison of different signedness.
This commit is contained in:
@@ -228,8 +228,7 @@ TEST(GpuHist, EvaluateRootSplit) {
|
||||
info.num_row_ = kNRows;
|
||||
info.num_col_ = kNCols;
|
||||
|
||||
DeviceSplitCandidate res =
|
||||
maker.EvaluateRootSplit({6.4f, 12.8f}, 0).split;
|
||||
DeviceSplitCandidate res = maker.EvaluateRootSplit({6.4f, 12.8f}).split;
|
||||
|
||||
ASSERT_EQ(res.findex, 7);
|
||||
ASSERT_NEAR(res.fvalue, 0.26, xgboost::kRtEps);
|
||||
|
||||
Reference in New Issue
Block a user