############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL densvis ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library’ * installing *source* package ‘densvis’ ... ** using non-staged installation via StagedInstall field ** libs using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using SDK: ‘MacOSX11.3.sdk’ clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c densne.cpp -o densne.o densne.cpp:181:24: warning: variable 'row_P' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:201:33: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:154:35: note: initialize the variable 'row_P' to silence this warning double* P; unsigned int* row_P; unsigned int* col_P; double* val_P; double* val_D; ^ = nullptr densne.cpp:181:24: warning: variable 'col_P' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:201:40: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:154:56: note: initialize the variable 'col_P' to silence this warning double* P; unsigned int* row_P; unsigned int* col_P; double* val_P; double* val_D; ^ = nullptr densne.cpp:181:24: warning: variable 'val_P' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:201:47: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:154:71: note: initialize the variable 'val_P' to silence this warning double* P; unsigned int* row_P; unsigned int* col_P; double* val_P; double* val_D; ^ = nullptr densne.cpp:181:24: warning: variable 'val_D' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:201:54: note: uninitialized use occurs here computeExpectedLogDist(&ro, row_P, col_P, val_P, val_D, N, logdist_shift); ^~~~~ densne.cpp:181:24: note: remove the condition if it is always true for(int i = 0; i < N * N; i++) P[i] /= sum_P; ^~~~~~~~~ densne.cpp:154:86: note: initialize the variable 'val_D' to silence this warning double* P; unsigned int* row_P; unsigned int* col_P; double* val_P; double* val_D; ^ = nullptr 4 warnings generated. clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c densvis.cpp -o densvis.o clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c sptree.cpp -o sptree.o clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o densvis.so RcppExports.o densne.o densvis.o sptree.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0 -L/opt/gfortran/lib -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation installing to /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/densvis/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded * DONE (densvis)