Code Monkey home page Code Monkey logo

rarcinfo's People

Contributors

becarioprecario avatar rsbivand avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

rsbivand

rarcinfo's Issues

Old AVC code causes warnings

This is 00install.out on today's R-devel (after I tried fixing a few from the current GDAL avc/ driver directory. It could be that I have stronger warnings than CRAN submission, you could try winbuilder:

* installing *source* package ‘RArcInfo’ ...
** using staged installation
** libs
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c RArcInfo.c -o RArcInfo.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_bin.c -o avc_bin.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_binwr.c -o avc_binwr.o
avc_binwr.c: In function ‘AVCBinWriteCreateTable’:
avc_binwr.c:1454:50: warning: ‘%4.4d’ directive output may be truncated writing between 4 and 10 bytes into a region of size 5 [-Wformat-truncation=]
 1454 |     snprintf(szInfoFile, sizeof(szInfoFile), "arc%4.4d", nTableIndex);
      |                                                  ^~~~~
avc_binwr.c:1454:46: note: directive argument in the range [0, 2147483647]
 1454 |     snprintf(szInfoFile, sizeof(szInfoFile), "arc%4.4d", nTableIndex);
      |                                              ^~~~~~~~~~
avc_binwr.c:1454:5: note: ‘snprintf’ output between 8 and 14 bytes into a destination of size 8
 1454 |     snprintf(szInfoFile, sizeof(szInfoFile), "arc%4.4d", nTableIndex);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avc_binwr.c:1558:28: warning: ‘%s’ directive output may be truncated writing up to 39 bytes into a region of size between 38 and 77 [-Wformat-truncation=]
 1558 |                     "../%s/%s.%s", szCoverName, szSubclass, szExt);
      |                            ^~                   ~~~~~~~~~~
avc_binwr.c:1557:13: note: ‘snprintf’ output between 6 and 87 bytes into a destination of size 81
 1557 |             snprintf(psTableDef->szDataFile, sizeof(psTableDef->szDataFile),
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1558 |                     "../%s/%s.%s", szCoverName, szSubclass, szExt);
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_e00gen.c -o avc_e00gen.o
avc_e00gen.c: In function ‘AVCE00GenStartSection’:
avc_e00gen.c:270:13: warning: ‘pszName’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  270 |             sprintf(psInfo->pszBuf, "%s  3", pszName);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avc_e00gen.c: In function ‘AVCE00GenObject’:
avc_e00gen.c:414:12: warning: ‘pszLine’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  414 |     return pszLine;
      |            ^~~~~~~
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_e00parse.c -o avc_e00parse.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_e00read.c -o avc_e00read.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_e00write.c -o avc_e00write.o
avc_e00write.c: In function ‘_AVCE00WriteCreateCoverFile’:
avc_e00write.c:386:30: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
  386 |         sprintf(szSysId, "%s#", szOldName);
      |                              ^
avc_e00write.c:386:9: note: ‘sprintf’ output between 2 and 41 bytes into a destination of size 40
  386 |         sprintf(szSysId, "%s#", szOldName);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avc_e00write.c:387:30: warning: ‘-ID’ directive writing 3 bytes into a region of size between 1 and 40 [-Wformat-overflow=]
  387 |         sprintf(szUserId, "%s-ID", szOldName);
      |                              ^~~
avc_e00write.c:387:9: note: ‘sprintf’ output between 4 and 43 bytes into a destination of size 40
  387 |         sprintf(szUserId, "%s-ID", szOldName);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avc_e00write.c:401:61: warning: ‘%s’ directive writing up to 39 bytes into a region of size 17 [-Wformat-overflow=]
  401 |                 sprintf(psTableDef->pasFieldDef[i].szName, "%s-ID", szNewName);
      |                                                             ^~      ~~~~~~~~~
avc_e00write.c:401:17: note: ‘sprintf’ output between 4 and 43 bytes into a destination of size 17
  401 |                 sprintf(psTableDef->pasFieldDef[i].szName, "%s-ID", szNewName);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avc_e00write.c:397:61: warning: ‘%s’ directive writing up to 39 bytes into a region of size 17 [-Wformat-overflow=]
  397 |                 sprintf(psTableDef->pasFieldDef[i].szName, "%s#", szNewName);
      |                                                             ^~    ~~~~~~~~~
avc_e00write.c:397:17: note: ‘sprintf’ output between 2 and 41 bytes into a destination of size 17
  397 |                 sprintf(psTableDef->pasFieldDef[i].szName, "%s#", szNewName);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avc_e00write.c:409:39: warning: ‘%s’ directive writing up to 39 bytes into a region of size 33 [-Wformat-overflow=]
  409 |     sprintf(psTableDef->szTableName, "%s.%s", szNewName, szOldExt);
      |                                       ^~      ~~~~~~~~~
avc_e00write.c:409:5: note: ‘sprintf’ output between 2 and 80 bytes into a destination of size 33
  409 |     sprintf(psTableDef->szTableName, "%s.%s", szNewName, szOldExt);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_misc.c -o avc_misc.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c avc_rawbin.c -o avc_rawbin.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c cpl_conv.c -o cpl_conv.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c cpl_dir.c -o cpl_dir.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c cpl_error.c -o cpl_error.o
cpl_error.c: In function ‘CPLDefaultErrorHandler’:
cpl_error.c:291:22: warning: unused variable ‘bLogInit’ [-Wunused-variable]
  291 |     static int       bLogInit = FALSE;
      |                      ^~~~~~~~
At top level:
cpl_error.c:291:22: warning: ‘bLogInit’ defined but not used [-Wunused-variable]
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c cpl_string.c -o cpl_string.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c cpl_vsisimple.c -o cpl_vsisimple.o
gcc -I"/home/rsb/topics/R/trunk/builddir/include" -DNDEBUG   -I/usr/local/include   -fpic  -g -O2 -Wall -pedantic  -c init.c -o init.o
In file included from init.c:3:
RArcInfo.h:32:13: warning: ‘ConvertCovere00toavc’ declared ‘static’ but never defined [-Wunused-function]
   32 | static void ConvertCovere00toavc(FILE *fpIn, const char *pszCoverName);
      |             ^~~~~~~~~~~~~~~~~~~~
RArcInfo.h:35:13: warning: ‘ConvertCoveravctoe00’ declared ‘static’ but never defined [-Wunused-function]
   35 | static void ConvertCoveravctoe00(const char *pszFname, FILE *fpOut);
      |             ^~~~~~~~~~~~~~~~~~~~
gcc -shared -L/usr/local/lib64 -o RArcInfo.so RArcInfo.o avc_bin.o avc_binwr.o avc_e00gen.o avc_e00parse.o avc_e00read.o avc_e00write.o avc_misc.o avc_rawbin.o cpl_conv.o cpl_dir.o cpl_error.o cpl_string.o cpl_vsisimple.o init.o
installing to /home/rsb/topics/packages/github-rsb/RArcInfo.Rcheck/00LOCK-RArcInfo/00new/RArcInfo/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 (RArcInfo)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.