* installing *source* package ‘GRAB’ ...
** this is package ‘GRAB’ version ‘0.2.4’
** package ‘GRAB’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘clang version 21.1.6’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/GRAB/src'
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c BGEN.cpp -o BGEN.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c DenseGRM.cpp -o DenseGRM.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c Main.cpp -o Main.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c PLINK.cpp -o PLINK.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c POLMM.cpp -o POLMM.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c RcppExports.cpp -o RcppExports.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c SAGELD.cpp -o SAGELD.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c SPACox.cpp -o SPACox.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c SPAGRM.cpp -o SPAGRM.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c SPAmix.cpp -o SPAmix.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c UTIL.cpp -o UTIL.o
/usr/local/clang21/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -DARMA_64BIT_WORD=1 -I'/data/gannet/ripley/R/test-clang/Rcpp/include' -I'/data/gannet/ripley/R/test-clang/RcppArmadillo/include' -I'/data/gannet/ripley/R/test-clang/RcppParallel/include' -I'/data/gannet/ripley/R/test-clang/BH/include' -isystem /usr/local/clang21/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -Wno-missing-template-arg-list-after-template-kw -c WtCoxG.cpp -o WtCoxG.o
In file included from PLINK.cpp:5:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from RcppExports.cpp:4:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from POLMM.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from WtCoxG.cpp:2:
In file included from ./WtCoxG.h:5:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from BGEN.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from SPAmix.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from Main.cpp:42:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from UTIL.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from SAGELD.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from SPACox.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from SPAGRM.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
In file included from DenseGRM.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:26:
In file included from /data/gannet/ripley/R/test-clang/Rcpp/include/RcppCommon.h:75:
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: #warning is a C++23 extension [-Wpedantic]
32 | #warning include R_ext/ObjectTable.h for R_ObjectTable declarations
| ^
/data/gannet/ripley/R/R-clang/include/R_ext/Callbacks.h:32:2: warning: include R_ext/ObjectTable.h for R_ObjectTable declarations [-W#warnings]
2 warnings generated.
2 warnings generated.
BGEN.cpp:75:12: warning: unused variable 'CompressedSNPBlocks' [-Wunused-variable]
75 | uint32_t CompressedSNPBlocks = flags&3; //Rcpp::Rcout << " CompressedSNPBlocks: " << CompressedSNPBlocks << std::endl;
| ^~~~~~~~~~~~~~~~~~~
BGEN.cpp:77:12: warning: unused variable 'Layout' [-Wunused-variable]
77 | uint32_t Layout = (flags>>2)&0xf; //Rcpp::Rcout << " Layout: " << Layout << std::endl;
| ^~~~~~
2 warnings generated.
2 warnings generated.
2 warnings generated.
2 warnings generated.
Main.cpp:582:18: warning: variable 'Beta' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
582 | } else if (t_method == "SPAGRM") {
| ^~~~~~~~~~~~~~~~~~~~
Main.cpp:591:23: note: uninitialized use occurs here
591 | BetaVec.at(i) = Beta * (1 - 2 * flip); // Beta if flip = false, -1*Beta is flip = true
| ^~~~
Main.cpp:582:14: note: remove the 'if' if its condition is always false
582 | } else if (t_method == "SPAGRM") {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
583 | pval = ptr_gSPAGRMobj->getMarkerPval(GVec, altFreq, zScore, hwepval);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
584 |
585 | } else {
| ~~~~~~~
Main.cpp:579:18: warning: variable 'Beta' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
579 | } else if (t_method == "SPACox") {
| ^~~~~~~~~~~~~~~~~~~~
Main.cpp:591:23: note: uninitialized use occurs here
591 | BetaVec.at(i) = Beta * (1 - 2 * flip); // Beta if flip = false, -1*Beta is flip = true
| ^~~~
Main.cpp:579:14: note: remove the 'if' if its condition is always false
579 | } else if (t_method == "SPACox") {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
580 | pval = ptr_gSPACoxobj->getMarkerPval(GVec, altFreq, zScore);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581 |
582 | } else if (t_method == "SPAGRM") {
| ~~~~~~
Main.cpp:545:16: note: initialize the variable 'Beta' to silence this warning
545 | double Beta, seBeta, pval, zScore, hwepval;
| ^
| = 0.0
Main.cpp:582:18: warning: variable 'seBeta' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
582 | } else if (t_method == "SPAGRM") {
| ^~~~~~~~~~~~~~~~~~~~
Main.cpp:592:25: note: uninitialized use occurs here
592 | seBetaVec.at(i) = seBeta;
| ^~~~~~
Main.cpp:582:14: note: remove the 'if' if its condition is always false
582 | } else if (t_method == "SPAGRM") {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
583 | pval = ptr_gSPAGRMobj->getMarkerPval(GVec, altFreq, zScore, hwepval);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
584 |
585 | } else {
| ~~~~~~~
Main.cpp:579:18: warning: variable 'seBeta' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
579 | } else if (t_method == "SPACox") {
| ^~~~~~~~~~~~~~~~~~~~
Main.cpp:592:25: note: uninitialized use occurs here
592 | seBetaVec.at(i) = seBeta;
| ^~~~~~
Main.cpp:579:14: note: remove the 'if' if its condition is always false
579 | } else if (t_method == "SPACox") {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
580 | pval = ptr_gSPACoxobj->getMarkerPval(GVec, altFreq, zScore);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581 |
582 | } else if (t_method == "SPAGRM") {
| ~~~~~~
Main.cpp:545:24: note: initialize the variable 'seBeta' to silence this warning
545 | double Beta, seBeta, pval, zScore, hwepval;
| ^
| = 0.0
Main.cpp:579:18: warning: variable 'hwepval' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
579 | } else if (t_method == "SPACox") {
| ^~~~~~~~~~~~~~~~~~~~
Main.cpp:593:26: note: uninitialized use occurs here
593 | hwepvalVec.at(i) = hwepval;
| ^~~~~~~
Main.cpp:579:14: note: remove the 'if' if its condition is always false
579 | } else if (t_method == "SPACox") {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
580 | pval = ptr_gSPACoxobj->getMarkerPval(GVec, altFreq, zScore);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581 |
582 | } else if (t_method == "SPAGRM") {
| ~~~~~~
Main.cpp:576:11: warning: variable 'hwepval' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
576 | if (t_method == "POLMM") {
| ^~~~~~~~~~~~~~~~~~~
Main.cpp:593:26: note: uninitialized use occurs here
593 | hwepvalVec.at(i) = hwepval;
| ^~~~~~~
Main.cpp:576:7: note: remove the 'if' if its condition is always false
576 | if (t_method == "POLMM") {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
577 | ptr_gPOLMMobj->getMarkerPval(GVec, Beta, seBeta, pval, altFreq, zScore);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
578 |
579 | } else if (t_method == "SPACox") {
| ~~~~~~
Main.cpp:545:47: note: initialize the variable 'hwepval' to silence this warning
545 | double Beta, seBeta, pval, zScore, hwepval;
| ^
| = 0.0
4 warnings generated.
2 warnings generated.
2 warnings generated.
2 warnings generated.
2 warnings generated.
8 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 -o GRAB.so BGEN.o DenseGRM.o Main.o PLINK.o POLMM.o RcppExports.o SAGELD.o SPACox.o SPAGRM.o SPAmix.o UTIL.o WtCoxG.o -lz -L/data/gannet/ripley/R/R-clang/lib -lRlapack -L/data/gannet/ripley/R/R-clang/lib -lRblas -lflang_rt.runtime -lm
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/GRAB/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/GRAB/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/GRAB/src'
installing to /data/gannet/ripley/R/packages/tests-clang/GRAB.Rcheck/00LOCK-GRAB/00new/GRAB/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 (GRAB)