Closed krivit closed 2 years ago
Irrelevant output snipped:
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/templates/cran-build/big-sur-arm64/Rlib/4.2/ergm/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c changestats_dgw_sp_ML.c -o changestats_dgw_sp_ML.o In file included from changestats_dgw_sp_ML.c:10: ./changestats_dgw_sp_ML.h:58:6: warning: variable 'e12' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if(any_order){ ^~~~~~~~~ ./changestats_dgw_sp_ML.h:62:31: note: uninitialized use occurs here return ergm_Check2Path(e11, e12, e21, e22, any_order); ^~~ ./changestats_dgw_sp_ML.h:58:3: note: remove the 'if' if its condition is always true if(any_order){ ^~~~~~~~~~~~~ ./changestats_dgw_sp_ML.h:57:89: note: initialize the variable 'e12' to silence this warning unsigned int e11 = ML_GETWT(ll1, tail1, head1), e22 = ML_GETWT(ll2, tail2, head2), e12, e21; ^ = 0 ./changestats_dgw_sp_ML.h:58:6: warning: variable 'e21' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if(any_order){ ^~~~~~~~~ ./changestats_dgw_sp_ML.h:62:36: note: uninitialized use occurs here return ergm_Check2Path(e11, e12, e21, e22, any_order); ^~~ ./changestats_dgw_sp_ML.h:58:3: note: remove the 'if' if its condition is always true if(any_order){ ^~~~~~~~~~~~~ ./changestats_dgw_sp_ML.h:57:94: note: initialize the variable 'e21' to silence this warning unsigned int e11 = ML_GETWT(ll1, tail1, head1), e22 = ML_GETWT(ll2, tail2, head2), e12, e21; ^ = 0 2 warnings generated. clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include -I'/Volumes/Builds/templates/cran-build/big-sur-arm64/Rlib/4.2/ergm/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c changestats_spcache_ML.c -o changestats_spcache_ML.o In file included from changestats_spcache_ML.c:12: ./changestats_dgw_sp_ML.h:58:6: warning: variable 'e12' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if(any_order){ ^~~~~~~~~ ./changestats_dgw_sp_ML.h:62:31: note: uninitialized use occurs here return ergm_Check2Path(e11, e12, e21, e22, any_order); ^~~ ./changestats_dgw_sp_ML.h:58:3: note: remove the 'if' if its condition is always true if(any_order){ ^~~~~~~~~~~~~ ./changestats_dgw_sp_ML.h:57:89: note: initialize the variable 'e12' to silence this warning unsigned int e11 = ML_GETWT(ll1, tail1, head1), e22 = ML_GETWT(ll2, tail2, head2), e12, e21; ^ = 0 ./changestats_dgw_sp_ML.h:58:6: warning: variable 'e21' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if(any_order){ ^~~~~~~~~ ./changestats_dgw_sp_ML.h:62:36: note: uninitialized use occurs here return ergm_Check2Path(e11, e12, e21, e22, any_order); ^~~ ./changestats_dgw_sp_ML.h:58:3: note: remove the 'if' if its condition is always true if(any_order){ ^~~~~~~~~~~~~ ./changestats_dgw_sp_ML.h:57:94: note: initialize the variable 'e21' to silence this warning unsigned int e11 = ML_GETWT(ll1, tail1, head1), e22 = ML_GETWT(ll2, tail2, head2), e12, e21; ^ = 0 2 warnings generated.
Irrelevant output snipped: