* installing to library ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages’
* installing *source* package ‘stochtree’ ...
** this is package ‘stochtree’ version ‘0.4.0’
** package ‘stochtree’ successfully unpacked and MD5 sums checked
** using staged installation
checking location of R... /home/hornik/tmp/R.check/r-devel-clang/Work/build
configure: creating ./config.status
config.status: creating src/Makevars
** libs
specified C++17
using C++ compiler: ‘Debian clang version 21.1.8 (3+b1)’
using C++17
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpZ9FmNl/R.INSTALL317f461f093e1/stochtree/src'
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c forest.cpp -o forest.o
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:5:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:10:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
forest.cpp:12:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   12 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:21:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   21 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:30:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   30 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:46:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   46 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:55:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   55 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:74:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   74 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:79:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   79 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:84:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   84 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:89:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   89 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:101:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  101 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:111:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  111 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:116:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  116 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:121:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  121 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:126:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  126 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:131:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  131 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:136:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  136 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:141:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  141 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:147:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  147 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:153:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  153 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:158:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  158 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:163:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  163 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:168:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  168 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:173:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  173 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:178:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  178 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:183:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  183 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:188:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  188 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:193:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  193 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:198:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  198 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:213:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  213 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:229:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  229 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:242:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  242 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:260:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  260 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:269:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  269 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:284:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  284 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:302:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  302 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:323:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  323 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:344:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  344 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:353:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  353 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:360:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  360 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:367:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  367 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:374:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  374 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:381:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  381 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:388:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  388 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:395:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  395 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:402:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  402 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:409:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  409 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:416:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  416 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:425:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  425 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:437:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  437 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:444:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  444 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:451:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  451 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:458:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  458 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:465:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  465 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:474:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  474 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:483:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  483 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:494:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  494 |     else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
      |              ^~~~~~~~~~~~~~~~~~~
forest.cpp:501:10: note: uninitialized use occurs here
  501 |     if ((model_type == StochTree::ModelType::kConstantLeafGaussian) || 
      |          ^~~~~~~~~~
forest.cpp:494:10: note: remove the 'if' if its condition is always true
  494 |     else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
      |          ^~~~~~~~~~~~~~~~~~~~~~~~                                                      ~
  495 |     else StochTree::Log::Fatal("Invalid model type");
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
forest.cpp:490:5: note: variable 'model_type' is declared here
  490 |     StochTree::ModelType model_type;
      |     ^
forest.cpp:535:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  535 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:550:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  550 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:560:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  560 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:566:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  566 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:584:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  584 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:606:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  606 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:624:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  624 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:641:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  641 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:649:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  649 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:667:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  667 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:672:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  672 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:677:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  677 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:682:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  682 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:687:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  687 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:692:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  692 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:697:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  697 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:702:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  702 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:707:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  707 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:713:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  713 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:725:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  725 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:742:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  742 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:750:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  750 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:764:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  764 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:781:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  781 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:798:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  798 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:810:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  810 |     else if (leaf_model_int == 4) model_type = StochTree::ModelType::kCloglogOrdinal;
      |              ^~~~~~~~~~~~~~~~~~~
forest.cpp:817:10: note: uninitialized use occurs here
  817 |     if ((model_type == StochTree::ModelType::kConstantLeafGaussian) || 
      |          ^~~~~~~~~~
forest.cpp:810:10: note: remove the 'if' if its condition is always true
  810 |     else if (leaf_model_int == 4) model_type = StochTree::ModelType::kCloglogOrdinal;
      |          ^~~~~~~~~~~~~~~~~~~~~~~~                                                   ~
  811 |     else StochTree::Log::Fatal("Invalid model type");
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
forest.cpp:805:5: note: variable 'model_type' is declared here
  805 |     StochTree::ModelType model_type;
      |     ^
forest.cpp:860:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  860 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:875:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  875 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:884:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  884 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:895:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  895 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
forest.cpp:905:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  905 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:5:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:7:
../src/include/stochtree/ordinal_sampler.h:20:15: warning: unused function 'sample_truncated_exponential_low_high' [-Wunused-function]
   20 | static double sample_truncated_exponential_low_high(double u, double rate, double low, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:24:15: warning: unused function 'sample_truncated_exponential_low' [-Wunused-function]
   24 | static double sample_truncated_exponential_low(double u, double rate, double low) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:28:15: warning: unused function 'sample_truncated_exponential_high' [-Wunused-function]
   28 | static double sample_truncated_exponential_high(double u, double rate, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:32:15: warning: unused function 'sample_exponential' [-Wunused-function]
   32 | static double sample_exponential(double u, double rate) {
      |               ^~~~~~~~~~~~~~~~~~
127 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c kernel.cpp -o kernel.o
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:5:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:10:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
kernel.cpp:9:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
    9 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
kernel.cpp:14:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   14 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:5:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:7:
../src/include/stochtree/ordinal_sampler.h:20:15: warning: unused function 'sample_truncated_exponential_low_high' [-Wunused-function]
   20 | static double sample_truncated_exponential_low_high(double u, double rate, double low, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:24:15: warning: unused function 'sample_truncated_exponential_low' [-Wunused-function]
   24 | static double sample_truncated_exponential_low(double u, double rate, double low) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:28:15: warning: unused function 'sample_truncated_exponential_high' [-Wunused-function]
   28 | static double sample_truncated_exponential_high(double u, double rate, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:32:15: warning: unused function 'sample_exponential' [-Wunused-function]
   32 | static double sample_exponential(double u, double rate) {
      |               ^~~~~~~~~~~~~~~~~~
42 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c R_data.cpp -o R_data.o
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_data.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from R_data.cpp:6:
In file included from ../src/include/stochtree/tree_sampler.h:11:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from R_data.cpp:6:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
R_data.cpp:9:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
    9 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:18:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   18 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:23:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   23 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:28:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   28 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:33:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   33 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:38:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   38 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:43:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   43 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:58:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   58 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:73:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   73 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:88:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   88 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:99:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   99 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:110:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  110 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:126:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  126 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:140:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  140 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:151:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  151 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:156:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  156 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:161:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  161 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:166:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  166 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:171:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  171 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:182:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  182 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:198:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  198 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:211:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  211 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:224:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  224 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:237:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  237 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:243:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  243 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:258:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  258 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:267:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  267 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:282:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  282 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:293:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  293 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:301:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  301 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:306:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  306 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:311:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  311 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:316:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  316 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:321:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  321 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:326:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  326 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:333:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  333 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:348:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  348 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:359:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  359 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:369:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  369 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_data.cpp:382:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  382 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
In file included from R_data.cpp:5:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
76 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c R_random_effects.cpp -o R_random_effects.o
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:5:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:10:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
R_random_effects.cpp:12:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   12 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:21:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   21 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:37:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   37 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:53:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   53 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:70:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   70 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:79:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   79 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:98:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   98 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:117:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  117 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:137:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  137 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:149:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  149 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:158:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  158 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:170:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  170 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:179:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  179 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:187:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  187 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:195:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  195 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:206:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  206 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:211:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  211 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:216:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  216 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:221:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  221 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:226:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  226 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:235:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  235 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:246:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  246 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:257:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  257 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:268:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  268 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:273:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  273 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:278:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  278 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:284:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  284 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:289:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  289 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:294:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  294 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:299:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  299 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:304:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  304 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:320:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  320 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:328:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  328 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
R_random_effects.cpp:337:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  337 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:5:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:7:
../src/include/stochtree/ordinal_sampler.h:20:15: warning: unused function 'sample_truncated_exponential_low_high' [-Wunused-function]
   20 | static double sample_truncated_exponential_low_high(double u, double rate, double low, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:24:15: warning: unused function 'sample_truncated_exponential_low' [-Wunused-function]
   24 | static double sample_truncated_exponential_low(double u, double rate, double low) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:28:15: warning: unused function 'sample_truncated_exponential_high' [-Wunused-function]
   28 | static double sample_truncated_exponential_high(double u, double rate, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:32:15: warning: unused function 'sample_exponential' [-Wunused-function]
   32 | static double sample_exponential(double u, double rate) {
      |               ^~~~~~~~~~~~~~~~~~
74 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c R_utils.cpp -o R_utils.o
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c sampler.cpp -o sampler.o
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:5:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:10:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
sampler.cpp:13:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   13 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:55:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
   55 |     else if (leaf_model_int == 4) model_type = StochTree::ModelType::kCloglogOrdinal;
      |              ^~~~~~~~~~~~~~~~~~~
sampler.cpp:61:10: note: uninitialized use occurs here
   61 |     if ((model_type == StochTree::ModelType::kConstantLeafGaussian) ||
      |          ^~~~~~~~~~
sampler.cpp:55:10: note: remove the 'if' if its condition is always true
   55 |     else if (leaf_model_int == 4) model_type = StochTree::ModelType::kCloglogOrdinal;
      |          ^~~~~~~~~~~~~~~~~~~~~~~~                                                   ~
   56 |     else StochTree::Log::Fatal("Invalid model type");
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sampler.cpp:50:5: note: variable 'model_type' is declared here
   50 |     StochTree::ModelType model_type;
      |     ^
sampler.cpp:99:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   99 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:140:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  140 |     else if (leaf_model_int == 4) model_type = StochTree::ModelType::kCloglogOrdinal;
      |              ^~~~~~~~~~~~~~~~~~~
sampler.cpp:146:10: note: uninitialized use occurs here
  146 |     if ((model_type == StochTree::ModelType::kConstantLeafGaussian) ||
      |          ^~~~~~~~~~
sampler.cpp:140:10: note: remove the 'if' if its condition is always true
  140 |     else if (leaf_model_int == 4) model_type = StochTree::ModelType::kCloglogOrdinal;
      |          ^~~~~~~~~~~~~~~~~~~~~~~~                                                   ~
  141 |     else StochTree::Log::Fatal("Invalid model type");
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sampler.cpp:135:5: note: variable 'model_type' is declared here
  135 |     StochTree::ModelType model_type;
      |     ^
sampler.cpp:184:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  184 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:199:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  199 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:209:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  209 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:223:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  223 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:232:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  232 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:238:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  238 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:244:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  244 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:250:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  250 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:256:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  256 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:261:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  261 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:267:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  267 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:272:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  272 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:277:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  277 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:292:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  292 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:302:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  302 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:337:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  337 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:343:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  343 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:353:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  353 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
sampler.cpp:366:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  366 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:5:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:7:
../src/include/stochtree/ordinal_sampler.h:20:15: warning: unused function 'sample_truncated_exponential_low_high' [-Wunused-function]
   20 | static double sample_truncated_exponential_low_high(double u, double rate, double low, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:24:15: warning: unused function 'sample_truncated_exponential_low' [-Wunused-function]
   24 | static double sample_truncated_exponential_low(double u, double rate, double low) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:28:15: warning: unused function 'sample_truncated_exponential_high' [-Wunused-function]
   28 | static double sample_truncated_exponential_high(double u, double rate, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:32:15: warning: unused function 'sample_exponential' [-Wunused-function]
   32 | static double sample_exponential(double u, double rate) {
      |               ^~~~~~~~~~~~~~~~~~
63 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c serialization.cpp -o serialization.o
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:5:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:10:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
serialization.cpp:12:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   12 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:25:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   25 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:39:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   39 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:48:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   48 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:62:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   62 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:71:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   71 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:85:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   85 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:94:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
   94 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:118:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  118 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:134:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  134 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:158:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  158 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:174:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  174 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:198:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  198 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:214:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  214 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:228:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  228 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:237:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  237 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:250:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  250 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:259:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  259 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:264:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  264 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:269:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  269 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:274:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  274 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:279:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  279 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:284:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  284 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:289:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  289 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:294:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  294 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:299:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  299 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:307:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  307 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:315:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  315 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:323:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  323 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:331:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  331 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:339:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  339 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:347:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  347 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:357:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  357 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:363:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  363 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:372:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  372 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:381:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  381 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:393:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  393 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:398:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  398 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:404:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  404 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
serialization.cpp:412:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
  412 | [[cpp11::register]]
      |   ^~~~~~~~~~~~~~~
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:5:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:7:
../src/include/stochtree/ordinal_sampler.h:20:15: warning: unused function 'sample_truncated_exponential_low_high' [-Wunused-function]
   20 | static double sample_truncated_exponential_low_high(double u, double rate, double low, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:24:15: warning: unused function 'sample_truncated_exponential_low' [-Wunused-function]
   24 | static double sample_truncated_exponential_low(double u, double rate, double low) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:28:15: warning: unused function 'sample_truncated_exponential_high' [-Wunused-function]
   28 | static double sample_truncated_exponential_high(double u, double rate, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:32:15: warning: unused function 'sample_exponential' [-Wunused-function]
   32 | static double sample_exponential(double u, double rate) {
      |               ^~~~~~~~~~~~~~~~~~
80 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c cpp11.cpp -o cpp11.o
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:1:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:5:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:10:
../src/include/stochtree/tree_sampler.h:80:15: warning: unused variable 'idx' [-Wunused-variable]
   80 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:123:15: warning: unused variable 'idx' [-Wunused-variable]
  123 |   data_size_t idx;
      |               ^~~
../src/include/stochtree/tree_sampler.h:576:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
  576 |           data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:577:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
  577 |           data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
      |                       ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:578:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
  578 |           data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
      |                       ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:573:21: warning: unused variable 'feature_type' [-Wunused-variable]
  573 |         FeatureType feature_type = feature_types[j];
      |                     ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:685:13: warning: unused variable 'num_categories' [-Wunused-variable]
  685 |         int num_categories;
      |             ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:670:19: warning: unused variable 'node_n' [-Wunused-variable]
  670 |       data_size_t node_n = node_end - node_begin;
      |                   ^~~~~~
../src/include/stochtree/tree_sampler.h:678:19: warning: unused variable 'right_n' [-Wunused-variable]
  678 |       data_size_t right_n = 0;
      |                   ^~~~~~~
../src/include/stochtree/tree_sampler.h:679:19: warning: unused variable 'sort_idx' [-Wunused-variable]
  679 |       data_size_t sort_idx;
      |                   ^~~~~~~~
../src/include/stochtree/tree_sampler.h:680:14: warning: unused variable 'feature_value' [-Wunused-variable]
  680 |       double feature_value;
      |              ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:681:12: warning: unused variable 'split_true' [-Wunused-variable]
  681 |       bool split_true;
      |            ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:553:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
  553 |     data_size_t num_cutpoints = 0;
      |                 ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:825:7: warning: unused variable 'num_trees' [-Wunused-variable]
  825 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:867:15: warning: unused variable 'n' [-Wunused-variable]
  867 |   data_size_t n = dataset.GetCovariates().rows();
      |               ^
../src/include/stochtree/tree_sampler.h:882:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
  882 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:984:7: warning: unused variable 'feature_split' [-Wunused-variable]
  984 |   int feature_split = tree->SplitIndex(leaf_parent_chosen);
      |       ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:992:11: warning: unused variable 'left_n' [-Wunused-variable]
  992 |   int32_t left_n = std::get<2>(split_eval);
      |           ^~~~~~
../src/include/stochtree/tree_sampler.h:993:11: warning: unused variable 'right_n' [-Wunused-variable]
  993 |   int32_t right_n = std::get<3>(split_eval);
      |           ^~~~~~~
../src/include/stochtree/tree_sampler.h:1037:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
 1037 |   bool accept;
      |        ^
../src/include/stochtree/tree_sampler.h:1086:8: warning: unused variable 'accept' [-Wunused-variable]
 1086 |   bool accept;
      |        ^~~~~~
../src/include/stochtree/tree_sampler.h:1133:7: warning: unused variable 'num_trees' [-Wunused-variable]
 1133 |   int num_trees = forests.NumTrees();
      |       ^~~~~~~~~
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:5:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
In file included from cpp11.cpp:4:
In file included from ./stochtree_types.h:7:
../src/include/stochtree/ordinal_sampler.h:20:15: warning: unused function 'sample_truncated_exponential_low_high' [-Wunused-function]
   20 | static double sample_truncated_exponential_low_high(double u, double rate, double low, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:24:15: warning: unused function 'sample_truncated_exponential_low' [-Wunused-function]
   24 | static double sample_truncated_exponential_low(double u, double rate, double low) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:28:15: warning: unused function 'sample_truncated_exponential_high' [-Wunused-function]
   28 | static double sample_truncated_exponential_high(double u, double rate, double high) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/include/stochtree/ordinal_sampler.h:32:15: warning: unused function 'sample_exponential' [-Wunused-function]
   32 | static double sample_exponential(double u, double rate) {
      |               ^~~~~~~~~~~~~~~~~~
42 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c container.cpp -o container.o
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:2:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from container.cpp:3:
In file included from ../src/include/stochtree/container.h:9:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
11 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c cutpoint_candidates.cpp -o cutpoint_candidates.o
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
cutpoint_candidates.cpp:138:10: warning: unused variable 'current_outcome' [-Wunused-variable]
  138 |   double current_outcome, next_outcome;
      |          ^~~~~~~~~~~~~~~
cutpoint_candidates.cpp:138:27: warning: unused variable 'next_outcome' [-Wunused-variable]
  138 |   double current_outcome, next_outcome;
      |                           ^~~~~~~~~~~~
In file included from cutpoint_candidates.cpp:1:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
16 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c data.cpp -o data.o
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:2:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from data.cpp:3:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
11 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c io.cpp -o io.o
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c leaf_model.cpp -o leaf_model.o
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from leaf_model.cpp:2:
../src/include/stochtree/leaf_model.h:1351:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
 1351 |   auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
      |        ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1358:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
 1358 |   data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
      |               ^~~~~~~~~~~~~~~~
leaf_model.cpp:196:7: warning: unused variable 'num_basis' [-Wunused-variable]
  196 |   int num_basis = dataset.GetBasis().cols();
      |       ^~~~~~~~~
In file included from leaf_model.cpp:2:
In file included from ../src/include/stochtree/leaf_model.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
17 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c ordinal_sampler.cpp -o ordinal_sampler.o
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:8:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
In file included from ordinal_sampler.cpp:1:
In file included from ../src/include/stochtree/ordinal_sampler.h:11:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
14 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c partition_tracker.cpp -o partition_tracker.o
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:28:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
partition_tracker.cpp:680:15: warning: unused variable 'node_size' [-Wunused-variable]
  680 |   data_size_t node_size = NodeSize(node_id);
      |               ^~~~~~~~~
In file included from partition_tracker.cpp:7:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
15 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c random_effects.cpp -o random_effects.o
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:8:
In file included from ../src/include/stochtree/category_tracker.h:28:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:28:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
random_effects.cpp:135:10: warning: unused variable 'output' [-Wunused-variable]
  135 |   double output;
      |          ^~~~~~
random_effects.cpp:191:11: warning: unused variable 'num_groups' [-Wunused-variable]
  191 |   int32_t num_groups = num_groups_;
      |           ^~~~~~~~~~
random_effects.cpp:206:11: warning: unused variable 'num_components' [-Wunused-variable]
  206 |   int32_t num_components = num_components_;
      |           ^~~~~~~~~~~~~~
random_effects.cpp:207:11: warning: unused variable 'num_groups' [-Wunused-variable]
  207 |   int32_t num_groups = num_groups_;
      |           ^~~~~~~~~~
In file included from random_effects.cpp:2:
In file included from ../src/include/stochtree/random_effects.h:9:
In file included from ../src/include/stochtree/cutpoint_candidates.h:43:
In file included from ../src/include/stochtree/partition_tracker.h:31:
../src/include/stochtree/openmp_utils.h:63:12: warning: unused function 'GetCurrentThreadNum' [-Wunused-function]
   63 | static int GetCurrentThreadNum() {
      |            ^~~~~~~~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:67:12: warning: unused function 'GetNumThreads' [-Wunused-function]
   67 | static int GetNumThreads() {
      |            ^~~~~~~~~~~~~
../src/include/stochtree/openmp_utils.h:71:13: warning: unused function 'SetNumThreads' [-Wunused-function]
   71 | static void SetNumThreads(int num_threads) {
      |             ^~~~~~~~~~~~~
18 warnings generated.
clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/cpp11/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/BH/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic   -c tree.cpp -o tree.o
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:1:
In file included from ../src/include/Eigen/Core:383:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:2:
In file included from ../src/include/Eigen/LU:45:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:12:
In file included from ../src/include/Eigen/Jacobi:29:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:3:
In file included from ../src/include/Eigen/Cholesky:43:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:15:
In file included from ../src/include/Eigen/Householder:27:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:4:
In file included from ../src/include/Eigen/QR:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:5:
In file included from ../src/include/Eigen/SVD:48:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:6:
In file included from ../src/include/Eigen/Geometry:57:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
In file included from ../src/include/stochtree/data.h:8:
In file included from ../src/include/Eigen/Dense:7:
In file included from ../src/include/Eigen/Eigenvalues:58:
../src/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
   14 |     #pragma clang diagnostic pop
      |                                 ^
In file included from tree.cpp:8:
In file included from ../src/include/stochtree/tree.h:10:
../src/include/stochtree/data.h:39:7: warning: unused variable 'feature_counter' [-Wunused-variable]
   39 |   int feature_counter;
      |       ^~~~~~~~~~~~~~~
../src/include/stochtree/data.h:80:8: warning: unused variable 'column_matched' [-Wunused-variable]
   80 |   bool column_matched;
      |        ^~~~~~~~~~~~~~
tree.cpp:430:20: warning: unused variable 'remapped_node' [-Wunused-variable]
  430 |   int32_t node_id, remapped_node;
      |                    ^~~~~~~~~~~~~
tree.cpp:444:20: warning: unused variable 'remapped_node' [-Wunused-variable]
  444 |   int32_t node_id, remapped_node;
      |                    ^~~~~~~~~~~~~
tree.cpp:460:20: warning: unused variable 'remapped_node' [-Wunused-variable]
  460 |   int32_t node_id, remapped_node;
      |                    ^~~~~~~~~~~~~
14 warnings generated.
clang++-21 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o stochtree.so forest.o kernel.o R_data.o R_random_effects.o R_utils.o sampler.o serialization.o cpp11.o container.o cutpoint_candidates.o data.o io.o leaf_model.o ordinal_sampler.o partition_tracker.o random_effects.o tree.o -fopenmp -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpZ9FmNl/R.INSTALL317f461f093e1/stochtree/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpZ9FmNl/R.INSTALL317f461f093e1/stochtree/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpZ9FmNl/R.INSTALL317f461f093e1/stochtree/src'
installing to /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/00LOCK-stochtree/00new/stochtree/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (stochtree)