Fix Google test warnings and error (#2957)

This commit is contained in:
Rory Mitchell
2017-12-20 00:13:56 +13:00
committed by GitHub
parent 76f8f51438
commit 7759ab99ee
3 changed files with 10 additions and 4 deletions

View File

@@ -15,6 +15,9 @@ TEST(gpu_predictor, Test) {
std::unique_ptr<Predictor> cpu_predictor =
std::unique_ptr<Predictor>(Predictor::Create("cpu_predictor"));
gpu_predictor->Init({}, {});
cpu_predictor->Init({}, {});
std::vector<std::unique_ptr<RegTree>> trees;
trees.push_back(std::unique_ptr<RegTree>(new RegTree()));
trees.back()->InitModel();