* installing *source* package ‘stochtree’ ...
** this is package ‘stochtree’ version ‘0.2.0’
** package ‘stochtree’ successfully unpacked and MD5 sums checked
** using staged installation
checking location of R... /data/gannet/ripley/R/R-clang
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C++ compiler: ‘clang version 21.1.6’
using C++17
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/stochtree/src'
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -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
| ^
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c kernel.cpp -o kernel.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:
../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:4:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | 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:8:
../src/include/stochtree/tree_sampler.h:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | 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:809:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
809 | else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
| ^~~~~~~~~~~~~~~~~~~
forest.cpp:816:10: note: uninitialized use occurs here
816 | if ((model_type == StochTree::ModelType::kConstantLeafGaussian) ||
| ^~~~~~~~~~
forest.cpp:809:10: note: remove the 'if' if its condition is always true
809 | else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
| ^~~~~~~~~~~~~~~~~~~~~~~~ ~
810 | 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:854:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
854 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
forest.cpp:869:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
869 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
forest.cpp:878:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
878 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
forest.cpp:889:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
889 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
forest.cpp:899:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
899 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
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:4:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | 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:8:
../src/include/stochtree/tree_sampler.h:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
kernel.cpp:10:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
10 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
kernel.cpp:15:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
15 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
In file included from forest.cpp:2:
In file included from ./stochtree_types.h:4:
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) {
| ^~~~~~~~~~~~~
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c R_data.cpp -o R_data.o
In file included from kernel.cpp:2:
In file included from ./stochtree_types.h:4:
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) {
| ^~~~~~~~~~~~~
38 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c R_random_effects.cpp -o R_random_effects.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;
| ^~~~~~~~~~~~~~
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c sampler.cpp -o sampler.o
123 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c serialization.cpp -o serialization.o
In file included from R_data.cpp:6:
In file included from ../src/include/stochtree/tree_sampler.h:10:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | 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:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
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
| ^
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t currenIn 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
| ^
t_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
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
| ^
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
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
| ^
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | 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:167:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
167 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:180:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
180 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:193:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
193 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:206:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
206 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:212:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
212 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:227:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
227 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:236:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
236 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:251:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
251 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:262:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
262 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:270:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
270 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:275:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
275 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:280:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
280 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:285:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
285 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:290:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
290 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:295:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
295 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:302:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
302 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:317:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
317 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:328:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
328 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:338:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
338 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
R_data.cpp:351:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
351 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
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 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 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 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 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 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 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;
| ^~~~~~~~~~~~~~~
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
| ^
../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: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: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 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 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 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) {
| ^~~~~~~~~~~~~
In file included from R_random_effects.cpp:2:
In file included from ./stochtree_types.h:4:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | 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:8:
../src/include/stochtree/tree_sampler.h:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | 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]]
| ^~~~~~~~~~~~~~~
71 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c cpp11.cpp -o cpp11.o
In file included from serialization.cpp:2:
In file included from ./stochtree_types.h:4:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | 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:8:
../src/include/stochtree/tree_sampler.h:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:4:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | 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]]
| ^~~~~~~~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:8:
../src/include/stochtree/tree_sampler.h:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
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]]
| ^~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
serialization.cpp:158:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
158 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
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]]
| ^~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
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]]
| ^~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_treesserialization.cpp:284:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
284 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
= forests.NumTrees();
| ^~~~~~~~~
serialization.cpp:289:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
289 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
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]]
| ^~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
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:sampler.cpp357::123::3 :warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]warning:
unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
12357 | | [[[[ccpppp1111::::rreeggiisstteerr]]]]
| | ^~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
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]]
| ^~~~~~~~~~~~~~~
sampler.cpp:53:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
53 | else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
| ^~~~~~~~~~~~~~~~~~~
sampler.cpp:59:10: note: uninitialized use occurs here
59 | if ((model_type == StochTree::ModelType::kConstantLeafGaussian) ||
| ^~~~~~~~~~
sampler.cpp:53:10: note: remove the 'if' if its condition is always true
53 | else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
| ^~~~~~~~~~~~~~~~~~~~~~~~ ~
54 | else StochTree::Log::Fatal("Invalid model type");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sampler.cpp:49:5: note: variable 'model_type' is declared here
49 | StochTree::ModelType model_type;
| ^
sampler.cpp:95:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
95 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:135:14: warning: variable 'model_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
135 | else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
| ^~~~~~~~~~~~~~~~~~~
sampler.cpp:141:10: note: uninitialized use occurs here
141 | if ((model_type == StochTree::ModelType::kConstantLeafGaussian) ||
| ^~~~~~~~~~
sampler.cpp:135:10: note: remove the 'if' if its condition is always true
135 | else if (leaf_model_int == 3) model_type = StochTree::ModelType::kLogLinearVariance;
| ^~~~~~~~~~~~~~~~~~~~~~~~ ~
136 | else StochTree::Log::Fatal("Invalid model type");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sampler.cpp:131:5: note: variable 'model_type' is declared here
131 | StochTree::ModelType model_type;
| ^
sampler.cpp:177:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
177 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:192:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
192 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:202:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
202 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:216:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
216 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:225:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
225 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:231:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
231 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:237:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
237 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:243:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
243 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:249:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
249 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:254:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
254 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:260:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
260 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:265:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
265 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:270:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
270 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:285:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
285 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
sampler.cpp:295:3: warning: unknown attribute 'cpp11::register' ignored [-Wunknown-attributes]
295 | [[cpp11::register]]
| ^~~~~~~~~~~~~~~
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 R_random_effects.cpp:2:
In file included from ./stochtree_types.h:4:
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:4:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | 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:8:
../src/include/stochtree/tree_sampler.h:79:15: warning: unused variable 'idx' [-Wunused-variable]
79 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:122:15: warning: unused variable 'idx' [-Wunused-variable]
122 | data_size_t idx;
| ^~~
../src/include/stochtree/tree_sampler.h:537:23: warning: unused variable 'current_bin_begin' [-Wunused-variable]
537 | data_size_t current_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:538:23: warning: unused variable 'current_bin_size' [-Wunused-variable]
538 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_idx, j);
| ^~~~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:539:23: warning: unused variable 'next_bin_begin' [-Wunused-variable]
539 | data_size_t next_bin_begin = cutpoint_grid_container.BinStartIndex(cutpoint_idx + 1, j);
| ^~~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:534:21: warning: unused variable 'feature_type' [-Wunused-variable]
534 | FeatureType feature_type = feature_types[j];
| ^~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:648:13: warning: unused variable 'num_categories' [-Wunused-variable]
648 | int num_categories;
| ^~~~~~~~~~~~~~
In file included from ../src/include/stochtree/tree_sampler.h:633:19: warning: unused variable 'node_n' [-Wunused-variable]
633 | data_size_t node_n = node_end - node_begin;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:641:19: warning: unused variable 'right_n' [-Wunused-variable]
641 | data_size_t right_n = 0;
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:642:19: warning: unused variable 'sort_idx' [-Wunused-variable]
642 | data_size_t sort_idx;
| ^~~~~~~~
../src/include/stochtree/tree_sampler.h:643:14: warning: unused variable 'feature_value' [-Wunused-variable]
643 | double feature_value;
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:644:12: warning: unused variable 'split_true' [-Wunused-variable]
644 | bool split_true;
| ^~~~~~~~~~
../src/include/stochtree/tree_sampler.h:514:17: warning: unused variable 'num_cutpoints' [-Wunused-variable]
514 | data_size_t num_cutpoints = 0;
| ^~~~~~~~~~~~~
serialization.cpp:2:
In file included from ./stochtree_types.h:4:
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) {
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:787:7: warning: unused variable 'num_trees' [-Wunused-variable]
787 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
../src/include/stochtree/tree_sampler.h:829:15: warning: unused variable 'n' [-Wunused-variable]
829 | data_size_t n = dataset.GetCovariates().rows();
| ^
../src/include/stochtree/tree_sampler.h:844:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
844 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:947:7: warning: unused variable 'feature_split' [-Wunused-variable]
947 | int feature_split = tree->SplitIndex(leaf_parent_chosen);
| ^~~~~~~~~~~~~
../src/include/stochtree/tree_sampler.h:955:11: warning: unused variable 'left_n' [-Wunused-variable]
955 | int32_t left_n = std::get<2>(split_eval);
| ^~~~~~
../src/include/stochtree/tree_sampler.h:956:11: warning: unused variable 'right_n' [-Wunused-variable]
956 | int32_t right_n = std::get<3>(split_eval);
| ^~~~~~~
../src/include/stochtree/tree_sampler.h:1000:8: warning: variable 'accept' set but not used [-Wunused-but-set-variable]
1000 | bool accept;
| ^
../src/include/stochtree/tree_sampler.h:1050:8: warning: unused variable 'accept' [-Wunused-variable]
1050 | bool accept;
| ^~~~~~
../src/include/stochtree/tree_sampler.h:1096:7: warning: unused variable 'num_trees' [-Wunused-variable]
1096 | int num_trees = forests.NumTrees();
| ^~~~~~~~~
In file included from sampler.cpp:2:
In file included from ./stochtree_types.h:4:
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) {
| ^~~~~~~~~~~~~
70 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c container.cpp -o container.o
76 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c cutpoint_candidates.cpp -o cutpoint_candidates.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 cpp11.cpp:4:
In file included from ./stochtree_types.h:4:
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 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
| ^
55 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c data.cpp -o data.o
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;
| ^~~~~~~~~~~~~~
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
| ^
38 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c io.cpp -o io.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: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 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;
| ^~~~~~~~~~~~~~
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) {
| ^~~~~~~~~~~~~
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c leaf_model.cpp -o leaf_model.o
16 warnings generated.
11 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c partition_tracker.cpp -o partition_tracker.o
11 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c random_effects.cpp -o random_effects.o
In file included from leaf_model.cpp:1:
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:1:
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:1:
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:1:
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:1:
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:1:
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:1:
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:1:
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:1:
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 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 leaf_model.cpp:1:
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 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 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;
| ^~~~~~~~~~~~~~
In file included from leaf_model.cpp:1:
../src/include/stochtree/leaf_model.h:1169:8: warning: unused variable 'node_end_iter' [-Wunused-variable]
1169 | auto node_end_iter = tracker.SortedNodeEndIterator(node_id, feature_num);
| ^~~~~~~~~~~~~
../src/include/stochtree/leaf_model.h:1176:15: warning: unused variable 'current_bin_size' [-Wunused-variable]
1176 | data_size_t current_bin_size = cutpoint_grid_container.BinLength(cutpoint_num, feature_num);
| ^~~~~~~~~~~~~~~~
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;
| ^~~~~~~~~~~~~~
partition_tracker.cpp:680:15: warning: unused variable 'node_size' [-Wunused-variable]
680 | data_size_t node_size = NodeSize(node_id);
| ^~~~~~~~~
leaf_model.cpp:195:7: warning: unused variable 'num_basis' [-Wunused-variable]
195 | int num_basis = dataset.GetBasis().cols();
| ^~~~~~~~~
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 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.
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -I../src/include -DEIGEN_MPL2_ONLY -DEIGEN_DONT_PARALLELIZE -DSTOCHTREE_R_BUILD -I'/data/gannet/ripley/R/test-clang/cpp11/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c tree.cpp -o tree.o
In file included from leaf_model.cpp:1:
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 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;
| ^~~~~~~~~~~~~
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) {
| ^~~~~~~~~~~~~
17 warnings generated.
14 warnings generated.
18 warnings generated.
/usr/local/clang21/bin/clang++ -std=gnu++17 -shared -L/usr/local/clang/lib64 -L/usr/local/clang21/lib -L/usr/local/clang21/lib/x86_64-unknown-linux-gnu -L/usr/local/lib64 -L/usr/local/clang21/lib/clang/21/lib/x86_64-unknown-linux-gnu -o stochtree.so forest.o kernel.o R_data.o R_random_effects.o sampler.o serialization.o cpp11.o container.o cutpoint_candidates.o data.o io.o leaf_model.o partition_tracker.o random_effects.o tree.o -fopenmp
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/stochtree/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/stochtree/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/stochtree/src'
installing to /data/gannet/ripley/R/packages/tests-clang/stochtree.Rcheck/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)