hypertidy/PROJ

maybe uninitializeds

Closed this issue · 1 comments

* installing *source* package 'PROJ' ...
** using staged installation

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs
using C compiler: 'gcc.exe (GCC) 12.2.0'
rm -f PROJ.dll C_proj_crs_text.o C_proj_trans.o init.o
cp -r "d:/rtools43/x86_64-w64-mingw32.static.posix/share/proj" ../inst/
gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG -DUSE_PROJ6_API=1    -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c C_proj_crs_text.c -o C_proj_crs_text.o
C_proj_crs_text.c: In function 'C_proj_crs_text':
C_proj_crs_text.c:14:7: warning: variable 'success' set but not used [-Wunused-but-set-variable]
   14 |   int success;
      |       ^~~~~~~
C_proj_crs_text.c:51:3: warning: 'outstring' may be used uninitialized [-Wmaybe-uninitialized]
   51 |   SET_STRING_ELT(out, 0, mkChar(outstring));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C_proj_crs_text.c:17:16: note: 'outstring' was declared here
   17 |   const char  *outstring;
      |                ^~~~~~~~~
gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG -DUSE_PROJ6_API=1    -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c C_proj_trans.c -o C_proj_trans.o
C_proj_trans.c: In function 'proj_trans_list':
C_proj_trans.c:59:73: warning: 't_copy' may be used uninitialized [-Wmaybe-uninitialized]
   59 |       a = proj_coord(REAL(x_copy)[i], REAL(y_copy)[i], REAL(z_copy)[i], REAL(t_copy)[i]);
      |                                                                         ^~~~~~~~~~~~
C_proj_trans.c:29:16: note: 't_copy' was declared here
   29 |   SEXP z_copy, t_copy;
      |                ^~~~~~
C_proj_trans.c:59:56: warning: 'z_copy' may be used uninitialized [-Wmaybe-uninitialized]
   59 |       a = proj_coord(REAL(x_copy)[i], REAL(y_copy)[i], REAL(z_copy)[i], REAL(t_copy)[i]);
      |                                                        ^~~~~~~~~~~~
C_proj_trans.c:29:8: note: 'z_copy' was declared here
   29 |   SEXP z_copy, t_copy;
      |        ^~~~~~
gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG -DUSE_PROJ6_API=1    -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c init.c -o init.o
gcc -shared -s -static-libgcc -o PROJ.dll tmp.def C_proj_crs_text.o C_proj_trans.o init.o -lproj -lsqlite3 -lcurl -ltiff -ljpeg -lrtmp -lssl -lssh2 -lgcrypt -lcrypto -lgdi32 -lz -lzstd -lwebp -llzma -lgdi32 -lcrypt32 -lidn2 -lunistring -liconv -lgpg-error -lws2_32 -lwldap32 -lwinmm -lstdc++ -lbcrypt -lsharpyuv -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R/bin/x64 -lR
installing to d:/RCompile/CRANguest/R-devel/lib/00LOCK-PROJ/00new/PROJ/libs/x64
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'PROJ' as PROJ_0.4.5.zip

fixed