Get rid of a few trivial compiler warnings. (#4312)

This commit is contained in:
Hajime Morrita
2019-03-30 09:02:29 -07:00
committed by Jiaming Yuan
parent ad4de0d718
commit 680a1b36f3
5 changed files with 4 additions and 6 deletions

View File

@@ -624,7 +624,7 @@ XGB_DLL int XGDMatrixCreateFromDT(void** data, const char** feature_stypes,
#pragma omp parallel num_threads(nthread)
{
// Count elements per row, column by column
for (auto j = 0; j < ncol; ++j) {
for (auto j = 0u; j < ncol; ++j) {
DTType dtype = DTGetType(feature_stypes[j]);
#pragma omp for schedule(static)
for (omp_ulong i = 0; i < nrow; ++i) {