Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix warnings #3399

Merged
merged 7 commits into from
Sep 29, 2020
Merged

fix warnings #3399

merged 7 commits into from
Sep 29, 2020

Conversation

guolinke
Copy link
Collaborator

to fix #3394

@StrikerRUS
Copy link
Collaborator

@guolinke
Looks like one warning about type casting still remains in this branch:

C:\Users\ntitov\Downloads\LightGBM\src\io\dataset.cpp(380): warning C4800: 'signed char': forcing value to bool 'true' or 'false' (performance warning) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxpr
oj]
C:\Users\ntitov\Downloads\LightGBM\build>cmake --build . --target ALL_BUILD --config Release
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_model_text.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  config_auto.cpp
  dataset.cpp
  dataset_loader.cpp
  file_io.cpp
  json11.cpp
c:\users\ntitov\downloads\lightgbm\src\boosting\prediction_early_stop.cpp(88): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  metadata.cpp
C:\Users\ntitov\Downloads\LightGBM\src\io\dataset.cpp(380): warning C4800: 'signed char': forcing value to bool 'true' or 'false' (performance warning) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxpr
oj]
c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(355): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov
\Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(407): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32
  _t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(405): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32
  _t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(404): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategorical(uint32_t,uint32_t,co
  nst uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(629): note: see reference to class template instantiation 'LightGBM::SparseBin<uint32_t>' being compiled
c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(310): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\
Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(362): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(ui
  nt32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov
  \Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(360): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(ui
  nt32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov
  \Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(359): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategorical(uint32_t,uint32_
  t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(625): note: see reference to class template instantiation 'LightGBM::DenseBin<uint32_t,false>' being compiled
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
  metric.cpp
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  network.cpp
  objective_function.cpp
  data_parallel_tree_learner.cpp
  feature_parallel_tree_learner.cpp
  gpu_tree_learner.cpp
  serial_tree_learner.cpp
  tree_learner.cpp
  voting_parallel_tree_learner.cpp
  c_api.cpp
c:\users\ntitov\downloads\lightgbm\src\objective\objective_function.cpp(52): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\c_api.cpp(879): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\serial_tree_learner.cpp(233): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
     Creating library C:/Users/ntitov/Downloads/LightGBM/Release/lib_lightgbm.lib and object C:/Users/ntitov/Downloads/LightGBM/Release/lib_lightgbm.exp
  _lightgbm.vcxproj -> C:\Users\ntitov\Downloads\LightGBM\Release\lib_lightgbm.dll
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt
  main.cpp
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_model_text.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  config_auto.cpp
  dataset.cpp
  dataset_loader.cpp
C:\Users\ntitov\Downloads\LightGBM\src\io\dataset.cpp(380): warning C4800: 'signed char': forcing value to bool 'true' or 'false' (performance warning) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxpro
j]
c:\users\ntitov\downloads\lightgbm\src\boosting\prediction_early_stop.cpp(88): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  file_io.cpp
c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(355): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov
\Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(407): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32
  _t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(405): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32
  _t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(404): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategorical(uint32_t,uint32_t,co
  nst uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(629): note: see reference to class template instantiation 'LightGBM::SparseBin<uint32_t>' being compiled
c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(310): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\
Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(362): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(ui
  nt32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov
  \Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(360): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(ui
  nt32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov
  \Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(359): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategorical(uint32_t,uint32_
  t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(625): note: see reference to class template instantiation 'LightGBM::DenseBin<uint32_t,false>' being compiled
  json11.cpp
  metadata.cpp
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
  metric.cpp
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  network.cpp
  objective_function.cpp
  data_parallel_tree_learner.cpp
  feature_parallel_tree_learner.cpp
  gpu_tree_learner.cpp
  serial_tree_learner.cpp
  tree_learner.cpp
  voting_parallel_tree_learner.cpp
c:\users\ntitov\downloads\lightgbm\src\objective\objective_function.cpp(52): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\serial_tree_learner.cpp(233): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
     Creating library C:/Users/ntitov/Downloads/LightGBM/Release/lightgbm.lib and object C:/Users/ntitov/Downloads/LightGBM/Release/lightgbm.exp
  lightgbm.vcxproj -> C:\Users\ntitov\Downloads\LightGBM\Release\lightgbm.exe
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt

src/io/dataset.cpp Outdated Show resolved Hide resolved
@StrikerRUS
Copy link
Collaborator

@guolinke More warnings about int8 to bool conversion:

C:\Users\ntitov\Downloads\LightGBM\build>cmake --build . --target ALL_BUILD --config Release
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_model_text.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  config_auto.cpp
  dataset.cpp
  dataset_loader.cpp
  file_io.cpp
c:\users\ntitov\downloads\lightgbm\src\boosting\prediction_early_stop.cpp(88): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  json11.cpp
  metadata.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\gbdt_model_text.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\boosting.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\dataset_loader.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\application\application.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\gbdt.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\gbdt_prediction.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\dataset.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\metadata.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(355): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\D
ownloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(407): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t
  ,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Downloa
  ds\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(405): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t
  ,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Downloa
  ds\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(404): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategorical(uint32_t,uint32_t,cons
  t uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(629): note: see reference to class template instantiation 'LightGBM::SparseBin<uint32_t>' being compiled
c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(310): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\Do
wnloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(362): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint
  32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(360): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint
  32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(359): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategorical(uint32_t,uint32_t,
  const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(625): note: see reference to class template instantiation 'LightGBM::DenseBin<uint32_t,false>' being compiled
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\parser.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  metric.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\tree.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\metric\dcg_calculator.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  network.cpp
  objective_function.cpp
  data_parallel_tree_learner.cpp
  feature_parallel_tree_learner.cpp
  gpu_tree_learner.cpp
  serial_tree_learner.cpp
  tree_learner.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\metric\metric.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\objective\objective_function.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\data_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\feature_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  voting_parallel_tree_learner.cpp
  c_api.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\serial_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\c_api.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\voting_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\objective\objective_function.cpp(52): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\c_api.cpp(879): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\serial_tree_learner.cpp(233): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
     Creating library C:/Users/ntitov/Downloads/LightGBM/Release/lib_lightgbm.lib and object C:/Users/ntitov/Downloads/LightGBM/Release/lib_lightgbm.exp
  _lightgbm.vcxproj -> C:\Users\ntitov\Downloads\LightGBM\Release\lib_lightgbm.dll
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt
  main.cpp
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_model_text.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  config_auto.cpp
  dataset.cpp
  dataset_loader.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\application\application.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\gbdt_prediction.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\boosting.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\dataset.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\gbdt_model_text.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\dataset_loader.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\boosting\gbdt.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\boosting\prediction_early_stop.cpp(88): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  file_io.cpp
c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(355): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\D
ownloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(407): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t
  ,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Downloa
  ds\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(405): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t
  ,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Downloa
  ds\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(404): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategorical(uint32_t,uint32_t,cons
  t uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(629): note: see reference to class template instantiation 'LightGBM::SparseBin<uint32_t>' being compiled
c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(310): warning C4100: 'max_bin': unreferenced formal parameter (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\Do
wnloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(362): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint
  32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(360): note: see reference to function template instantiation 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint
  32_t,uint32_t,uint32_t,const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' being compiled (compiling source file C:\Users\ntitov\Dow
  nloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(359): note: while compiling class template member function 'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategorical(uint32_t,uint32_t,
  const uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(625): note: see reference to class template instantiation 'LightGBM::DenseBin<uint32_t,false>' being compiled
  json11.cpp
  metadata.cpp
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
  metric.cpp
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  network.cpp
  objective_function.cpp
  data_parallel_tree_learner.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\metadata.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\parser.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\metric\dcg_calculator.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\io\tree.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\metric\metric.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  feature_parallel_tree_learner.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\objective\objective_function.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\data_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  gpu_tree_learner.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\feature_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  serial_tree_learner.cpp
  tree_learner.cpp
  voting_parallel_tree_learner.cpp
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\serial_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
C:\Users\ntitov\Downloads\LightGBM\include\LightGBM/feature_group.h(32): warning C4800: 'int8_t': forcing value to bool 'true' or 'false' (performance warning) (compiling source file C:\Users\ntitov\Downloads\Li
ghtGBM\src\treelearner\voting_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\objective\objective_function.cpp(52): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\serial_tree_learner.cpp(233): warning C4702: unreachable code [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
     Creating library C:/Users/ntitov/Downloads/LightGBM/Release/lightgbm.lib and object C:/Users/ntitov/Downloads/LightGBM/Release/lightgbm.exp
  lightgbm.vcxproj -> C:\Users\ntitov\Downloads\LightGBM\Release\lightgbm.exe
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt

@StrikerRUS
Copy link
Collaborator

StrikerRUS commented Sep 27, 2020

@guolinke Thank you! I can confirm that warnings about int -> bool conversion have gone.

Could you please take a look at two new warnings (one about double -> int conversion is presented in master branch CI) to fix all of them at once?

c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\metric\multiclass_metric.hpp(339): warning C4244: 'argument': conversion from 'd
ouble' to 'unsigned __int64', possible loss of data (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\metri
c\metric.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]

Full log:

C:\Users\ntitov\Downloads\LightGBM\build>cmake --build . --target ALL_BUILD --config Release
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_model_text.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  config_auto.cpp
  dataset.cpp
  dataset_loader.cpp
  file_io.cpp
  json11.cpp
c:\users\ntitov\downloads\lightgbm\src\boosting\prediction_early_stop.cpp(88): warning C4702: unreachable code [C:\User
s\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  metadata.cpp
c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(355): warning C4100: 'max_bin': unreferenced formal parameter
(compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_li
ghtgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(407): note: see reference to function template instantiation
   'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,const
  uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) c
  onst' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(405): note: see reference to function template instantiation
   'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,const
  uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) c
  onst' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(404): note: while compiling class template member function '
  LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategorical(uint32_t,uint32_t,const uint32_t *,int,const Li
  ghtGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source
   file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(629): note: see reference to class template instantiation 'LightGBM
  ::SparseBin<uint32_t>' being compiled
c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(311): warning C4100: 'max_bin': unreferenced formal parameter (
compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lig
htgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(363): note: see reference to function template instantiation
  'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,co
  nst uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t
  *) const' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(361): note: see reference to function template instantiation
  'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,co
  nst uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t
  *) const' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(360): note: while compiling class template member function 'L
  ightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategorical(uint32_t,uint32_t,const uint32_t *,int,cons
  t LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling so
  urce file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(625): note: see reference to class template instantiation 'LightGBM
  ::DenseBin<uint32_t,false>' being compiled
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
  metric.cpp
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  network.cpp
  objective_function.cpp
  cuda_tree_learner.cpp
  data_parallel_tree_learner.cpp
c:\users\ntitov\downloads\lightgbm\src\metric\multiclass_metric.hpp(339): warning C4244: 'argument': conversion from 'd
ouble' to 'unsigned __int64', possible loss of data (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\metri
c\metric.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  feature_parallel_tree_learner.cpp
  gpu_tree_learner.cpp
  serial_tree_learner.cpp
  tree_learner.cpp
  voting_parallel_tree_learner.cpp
  c_api.cpp
c:\users\ntitov\downloads\lightgbm\src\objective\objective_function.cpp(52): warning C4702: unreachable code [C:\Users\
ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\feature_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_le
  arner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\data_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learn
  er.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\serial_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\voting_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_lea
  rner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\c_api.cpp(891): warning C4702: unreachable code [C:\Users\ntitov\Downloads\Light
GBM\build\_lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\serial_tree_learner.cpp(233): warning C4702: unreachable code [C:\Us
ers\ntitov\Downloads\LightGBM\build\_lightgbm.vcxproj]
     Creating library C:/Users/ntitov/Downloads/LightGBM/Release/lib_lightgbm.lib and object C:/Users/ntitov/Downloads/
  LightGBM/Release/lib_lightgbm.exp
  _lightgbm.vcxproj -> C:\Users\ntitov\Downloads\LightGBM\Release\lib_lightgbm.dll
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt
  main.cpp
  application.cpp
  boosting.cpp
  gbdt.cpp
  gbdt_model_text.cpp
  gbdt_prediction.cpp
  prediction_early_stop.cpp
  bin.cpp
  config.cpp
  config_auto.cpp
  dataset.cpp
  dataset_loader.cpp
c:\users\ntitov\downloads\lightgbm\src\boosting\prediction_early_stop.cpp(88): warning C4702: unreachable code [C:\User
s\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  file_io.cpp
c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(355): warning C4100: 'max_bin': unreferenced formal parameter
(compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lig
htgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(407): note: see reference to function template instantiation
   'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,const
  uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) c
  onst' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(405): note: see reference to function template instantiation
   'LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,const
  uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) c
  onst' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\sparse_bin.hpp(404): note: while compiling class template member function '
  LightGBM::data_size_t LightGBM::SparseBin<uint32_t>::SplitCategorical(uint32_t,uint32_t,const uint32_t *,int,const Li
  ghtGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling source
   file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(629): note: see reference to class template instantiation 'LightGBM
  ::SparseBin<uint32_t>' being compiled
c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(311): warning C4100: 'max_bin': unreferenced formal parameter (
compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\ligh
tgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(363): note: see reference to function template instantiation
  'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,co
  nst uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t
  *) const' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(361): note: see reference to function template instantiation
  'LightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategoricalInner<false>(uint32_t,uint32_t,uint32_t,co
  nst uint32_t *,int,const LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t
  *) const' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  c:\users\ntitov\downloads\lightgbm\src\io\dense_bin.hpp(360): note: while compiling class template member function 'L
  ightGBM::data_size_t LightGBM::DenseBin<uint32_t,false>::SplitCategorical(uint32_t,uint32_t,const uint32_t *,int,cons
  t LightGBM::data_size_t *,LightGBM::data_size_t,LightGBM::data_size_t *,LightGBM::data_size_t *) const' (compiling so
  urce file C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp)
  C:\Users\ntitov\Downloads\LightGBM\src\io\bin.cpp(625): note: see reference to class template instantiation 'LightGBM
  ::DenseBin<uint32_t,false>' being compiled
  json11.cpp
  metadata.cpp
  parser.cpp
  tree.cpp
  dcg_calculator.cpp
  metric.cpp
  linker_topo.cpp
  linkers_mpi.cpp
  linkers_socket.cpp
  network.cpp
  objective_function.cpp
c:\users\ntitov\downloads\lightgbm\src\metric\multiclass_metric.hpp(339): warning C4244: 'argument': conversion from 'd
ouble' to 'unsigned __int64', possible loss of data (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\metri
c\metric.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  cuda_tree_learner.cpp
  data_parallel_tree_learner.cpp
  feature_parallel_tree_learner.cpp
  gpu_tree_learner.cpp
  serial_tree_learner.cpp
  tree_learner.cpp
  voting_parallel_tree_learner.cpp
c:\users\ntitov\downloads\lightgbm\src\objective\objective_function.cpp(52): warning C4702: unreachable code [C:\Users\
ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\feature_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_le
  arner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\feature_parallel_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\data_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learn
  er.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\data_parallel_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\serial_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\serial_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\voting_parallel_tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_lea
  rner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\voting_parallel_tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(175): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FindBestThresholdSequentially<true,false,true,true,true,true,true,
  false>(double,double,LightGBM::data_size_t,const LightGBM::FeatureConstraint *,double,LightGBM::SplitInfo *,int,doubl
  e)' being compiled (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(150): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL3<true,false,true,true,true>(void)' being compiled
   (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(134): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL2<true,false,true,true>(void)' being compiled (com
  piling source file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
  c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(118): note: see reference to function templa
  te instantiation 'void LightGBM::FeatureHistogram::FuncForNumricalL1<true,false>(void)' being compiled (compiling sou
  rce file C:\Users\ntitov\Downloads\LightGBM\src\treelearner\tree_learner.cpp)
c:\users\ntitov\downloads\lightgbm\src\treelearner\serial_tree_learner.cpp(233): warning C4702: unreachable code [C:\Us
ers\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]
     Creating library C:/Users/ntitov/Downloads/LightGBM/Release/lightgbm.lib and object C:/Users/ntitov/Downloads/Ligh
  tGBM/Release/lightgbm.exp
  lightgbm.vcxproj -> C:\Users\ntitov\Downloads\LightGBM\Release\lightgbm.exe
  Building Custom Rule C:/Users/ntitov/Downloads/LightGBM/CMakeLists.txt

@guolinke
Copy link
Collaborator Author

@StrikerRUS

c:\users\ntitov\downloads\lightgbm\src\treelearner\feature_histogram.hpp(873): warning C4189: 'constraint_update_necess
ary': local variable is initialized but not referenced (compiling source file C:\Users\ntitov\Downloads\LightGBM\src\tr
eelearner\tree_learner.cpp) [C:\Users\ntitov\Downloads\LightGBM\build\lightgbm.vcxproj]

This is also related to template, so cannot be fixed..

@StrikerRUS
Copy link
Collaborator

This is also related to template, so cannot be fixed..

OK, got it, thanks!

Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guolinke Thank you very much! I can confirm that only warnings about unreachable code and related to templates are left.

@guolinke guolinke merged commit 3c0e12d into master Sep 29, 2020
@StrikerRUS StrikerRUS deleted the fix-warn2 branch September 30, 2020 02:10
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler warnings with VS 2015
2 participants