+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/shapelib.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xzMtYc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shapelib-1.3.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/shapelib-1.3.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd shapelib-1.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (shapelib_autotools.patch):' Patch #0 (shapelib_autotools.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file AUTHORS patching file COPYING patching file HOWTO-RELEASE patching file LICENSE.LGPL patching file Makefile patching file Makefile.am patching file NEWS patching file README patching file autogen.sh patching file configure.ac patching file contrib/Makefile patching file contrib/Makefile.am patching file contrib/Shape_PointInPoly_README.txt patching file contrib/doc/Shape_PointInPoly_README.txt patching file contrib/doc/shpsort.txt patching file contrib/my_nan.h patching file contrib/shpgeo.c patching file contrib/shpsort.txt patching file contrib/tests/shpproj.sh patching file m4/.gitignore patching file makeshape.sh patching file mkdist.sh patching file mkinstalldirs patching file mkrelease.sh patching file shapelib.pc.in patching file stream1.out patching file stream1.sh patching file stream2.out patching file stream2.sh patching file stream3.out patching file tests/stream1.out patching file tests/stream2.out patching file tests/stream3.out patching file tests/test1.sh patching file tests/test2.sh patching file tests/test3.sh + echo 'Patch #1 (shapelib_backports.patch):' Patch #1 (shapelib_backports.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file dbfopen.c patching file shptree.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0ajHdk + umask 022 + cd /builddir/build/BUILD + cd shapelib-1.3.0 + NOCONFIGURE=1 + sh ./autogen.sh Running autoreconf... autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing configure.ac:16: installing './ar-lib' configure.ac:16: installing './compile' configure.ac:28: installing './config.guess' configure.ac:28: installing './config.sub' configure.ac:12: installing './install-sh' configure.ac:12: installing './missing' Makefile.am: installing './INSTALL' Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' autoreconf: Leaving directory `.' Skipping configure process. + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for riscv64-redhat-linux-gnu-ar... no checking for riscv64-redhat-linux-gnu-lib... no checking for riscv64-redhat-linux-gnu-link... no checking for ar... ar checking the archiver (ar) interface... ar checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking for riscv64-redhat-linux-gnu-g++... no checking for riscv64-redhat-linux-gnu-c++... no checking for riscv64-redhat-linux-gnu-gpp... no checking for riscv64-redhat-linux-gnu-aCC... no checking for riscv64-redhat-linux-gnu-CC... no checking for riscv64-redhat-linux-gnu-cxx... no checking for riscv64-redhat-linux-gnu-cc++... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for riscv64-redhat-linux-gnu-FCC... no checking for riscv64-redhat-linux-gnu-KCC... no checking for riscv64-redhat-linux-gnu-RCC... no checking for riscv64-redhat-linux-gnu-xlC_r... no checking for riscv64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for some Win32 platform... no Configuration summary for shapelib 1.3.0: - Host: riscv64-redhat-linux-gnu - PROJ flags: -lproj checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating contrib/Makefile config.status: creating shapelib.pc config.status: executing depfiles commands config.status: executing libtool commands + make -j4 Making all in . make[1]: Entering directory '/builddir/build/BUILD/shapelib-1.3.0' CC safileio.lo CC shpopen.lo CC dbfopen.lo CC shptree.lo CC dbfadd.o CC dbfcreate.o CC dbfdump.o CC shpadd.o CC shpcreate.o CC shpdump.o CC shprewind.o CC shptreedump.o CC shputils.o CC shptest.o shputils.c: In function 'findunit': shputils.c:941:21: warning: missing braces around initializer [-Wmissing-braces] } unitkeytab[] = { ^ "CM", 39.37, { } "CENTIMETER", 39.37, { } "CENTIMETERS", 39.37, /** # of inches * 100 in unit **/ { } "METER", 3937, { } "METERS", 3937, { } "KM", 3937000, { } "KILOMETER", 3937000, { } "KILOMETERS", 3937000, { } "INCH", 100, { } "INCHES", 100, { } "FEET", 1200, { } "FOOT", 1200, { } "YARD", 3600, { } "YARDS", 3600, { } "MILE", 6336000, { } "MILES", 6336000 { }; } shputils.c: In function 'clip_boundary': shputils.c:900:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ CCLD libshp.la CCLD dbfadd CCLD dbfdump CCLD dbfcreate CCLD shpadd CCLD shpcreate CCLD shpdump CCLD shprewind CCLD shptreedump CCLD shputils CCLD shptest make[1]: Leaving directory '/builddir/build/BUILD/shapelib-1.3.0' Making all in contrib make[1]: Entering directory '/builddir/build/BUILD/shapelib-1.3.0/contrib' CC dbfinfo-dbfinfo.o CC dbfcat-dbfcat.o CC shpdxf-shpdxf.o CC shpcat-shpcat.o dbfinfo.c: In function 'main': dbfinfo.c:64:16: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf ("%ld Columns, %ld Records in file\n",i,DBFGetRecordCount(hDBF)); ~~^ %d dbfinfo.c:64:30: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] printf ("%ld Columns, %ld Records in file\n",i,DBFGetRecordCount(hDBF)); ~~^ ~~~~~~~~~~~~~~~~~~~~~~~ %d dbfinfo.c:76:15: warning: unused variable 'eType' [-Wunused-variable] DBFFieldType eType; ^~~~~ dbfinfo.c:37:14: warning: unused variable 'ciRecord' [-Wunused-variable] int ci, ciRecord; ^~~~~~~~ dbfinfo.c:37:10: warning: unused variable 'ci' [-Wunused-variable] int ci, ciRecord; ^~ dbfinfo.c:36:24: warning: unused variable 'cType' [-Wunused-variable] DBFFieldType hType,cType; ^~~~~ dbfinfo.c:36:18: warning: unused variable 'hType' [-Wunused-variable] DBFFieldType hType,cType; ^~~~~ dbfinfo.c:35:15: warning: unused variable 'cDBF' [-Wunused-variable] DBFHandle cDBF; ^~~~ dbfinfo.c:34:19: warning: unused variable 'cnDecimals' [-Wunused-variable] int cnWidth, cnDecimals; ^~~~~~~~~~ dbfinfo.c:34:10: warning: unused variable 'cnWidth' [-Wunused-variable] int cnWidth, cnDecimals; ^~~~~~~ dbfinfo.c:32:33: warning: unused variable 'nTitle' [-Wunused-variable] char ftype[15], cTitle[32], nTitle[32]; ^~~~~~ dbfinfo.c:32:21: warning: unused variable 'cTitle' [-Wunused-variable] char ftype[15], cTitle[32], nTitle[32]; ^~~~~~ dbfinfo.c:31:24: warning: unused variable 'szField' [-Wunused-variable] char szFormat[32], szField[1024]; ^~~~~~~ dbfinfo.c:31:10: warning: unused variable 'szFormat' [-Wunused-variable] char szFormat[32], szField[1024]; ^~~~~~~~ dbfinfo.c:30:24: warning: unused variable 'iRecord' [-Wunused-variable] int *panWidth, i, iRecord; ^~~~~~~ dbfinfo.c:30:11: warning: variable 'panWidth' set but not used [-Wunused-but-set-variable] int *panWidth, i, iRecord; ^~~~~~~~ dbfcat.c: In function 'main': dbfcat.c:137:6: warning: enumeration value 'FTLogical' not handled in switch [-Wswitch] switch( cType ) ^~~~~~ dbfcat.c:137:6: warning: enumeration value 'FTInvalid' not handled in switch [-Wswitch] dbfcat.c:130:9: warning: unused variable 'cf' [-Wunused-variable] double cf; ^~ dbfcat.c:41:17: warning: unused variable 'j' [-Wunused-variable] int hflds, j, cflds; ^ dbfcat.c:33:24: warning: unused variable 'szField' [-Wunused-variable] char szFormat[32], szField[1024]; ^~~~~~~ dbfcat.c:33:10: warning: unused variable 'szFormat' [-Wunused-variable] char szFormat[32], szField[1024]; ^~~~~~~~ dbfcat.c:32:11: warning: unused variable 'panWidth' [-Wunused-variable] int *panWidth, i, iRecord; ^~~~~~~~ In file included from /usr/include/string.h:494:0, from dbfinfo.c:23: In function 'strcpy', inlined from 'main' at dbfinfo.c:92:7: /usr/include/bits/string_fortified.h:90:10: warning: '__builtin___memcpy_chk' writing 20 bytes into a region of size 15 overflows the destination [-Wstringop-overflow=] return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: dbfcat.c:21:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = ^~~~~ shpdxf.c: In function 'dxf_ent_preamble': shpdxf.c:141:16: warning: too many arguments for format [-Wformat-extra-args] fprintf( df, " 8\r\n", df); ^~~~~~~~~ shpdxf.c: In function 'dxf_ent_postamble': shpdxf.c:193:18: warning: too many arguments for format [-Wformat-extra-args] fprintf( df, " 0\r\nSEQEND\r\n 8\r\n0\r\n", df); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpdxf.c: In function 'main': shpdxf.c:208:29: warning: variable 'nParts' set but not used [-Wunused-but-set-variable] int parts, *panParts, nParts, nVertices; ^~~~~~ shpdxf.c:208:11: warning: unused variable 'parts' [-Wunused-variable] int parts, *panParts, nParts, nVertices; ^~~~~ CC shpfix-shpfix.o CC shpsort-shpsort.o CXX Shape_PointInPoly-Shape_PointInPoly.o shpdxf.c:278:13: warning: 'idfld_type' may be used uninitialized in this function [-Wmaybe-uninitialized] switch (idfld_type) { ^~~~~~ CC shpcentrd-shpcentrd.o CC shpcentrd-shpgeo.o shpcentrd.c: In function 'main': shpcentrd.c:110:7: warning: unused variable 'res' [-Wunused-variable] int res ; ^~~ shpcentrd.c:71:10: warning: unused variable 'Cpan' [-Wunused-variable] int Cpan[2] = { 0,0 }; ^~~~ shpcentrd.c:69:12: warning: unused variable 'apeture' [-Wunused-variable] double apeture[4]; ^~~~~~~ shpcentrd.c:68:10: warning: unused variable 'dbfFileName' [-Wunused-variable] char dbfFileName[120] = ""; ^~~~~~~~~~~ shpcentrd.c:67:10: warning: unused variable 'shpFileName' [-Wunused-variable] char shpFileName[120] = ""; ^~~~~~~~~~~ shpcentrd.c:66:10: warning: unused variable 'fldName' [-Wunused-variable] char fldName[120] = ""; ^~~~~~~ shpcentrd.c:65:10: warning: unused variable 'idfldName' [-Wunused-variable] char idfldName[120] = ""; ^~~~~~~~~ shpcentrd.c:64:10: warning: unused variable 'kv' [-Wunused-variable] char kv[257] = ""; ^~ shpcentrd.c:63:17: warning: unused variable 'nflds' [-Wunused-variable] int idfld, nflds; ^~~~~ shpcentrd.c:63:10: warning: unused variable 'idfld' [-Wunused-variable] int idfld, nflds; ^~~~~ shpcentrd.c:62:19: warning: unused variable 'idfld_type' [-Wunused-variable] DBFFieldType idfld_type; ^~~~~~~~~~ shpcentrd.c:61:18: warning: unused variable 'pszPlus' [-Wunused-variable] const char *pszPlus; ^~~~~~~ shpcentrd.c:60:26: warning: unused variable 'adBounds' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~ shpcentrd.c:60:13: warning: unused variable 'padVertices' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~~~~ shpcentrd.c:59:66: warning: unused variable 'iPart' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~ shpcentrd.c:59:53: warning: unused variable 'panParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~ shpcentrd.c:59:44: warning: unused variable 'nParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~ shpcentrd.c:59:33: warning: unused variable 'nVertices' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~~ shpgeo.c: In function 'SHPReadSHPStream': shpgeo.c:276:5: warning: unused variable 'obj_storage' [-Wunused-variable] int obj_storage; ^~~~~~~~~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:335:30: warning: unused variable 'GeoType' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~ shpgeo.c:335:20: warning: unused variable 'my_order' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~~ shpgeo.c: In function 'SHPReadOGisWKB': shpgeo.c:416:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:416:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:415:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType = 0; ^~~~~~~~~ shpgeo.c:413:14: warning: variable 'psCShape' set but not used [-Wunused-but-set-variable] SHPObject *psCShape; ^~~~~~~~ shpgeo.c: In function 'SHPWriteOGisWKB': shpgeo.c:462:3: warning: "/*" within comment [-Wcomment] /* rather have it predicatable system-to-system */ shpgeo.c:477:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf (" I just allocated %d bytes to wkbObj \n", ~^ %ld sizeof (int) + sizeof (int) + sizeof(int) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(int) * psCShape->nParts + 1 ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(double) * 2 * psCShape->nVertices ) + 10 ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:498:31: warning: format '%d' expects a matching 'int' argument [-Wformat=] printf ("this system in (%d) LSB \n"); ~^ shpgeo.c:457:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:457:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:456:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType, thisDim; ^~~~~~~~~ shpgeo.c: In function 'SHPWriteOGisPolygon': shpgeo.c:538:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c: In function 'SHPReadOGisPolygon': shpgeo.c:643:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:643:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:641:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPReadOGisLine': shpgeo.c:710:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:710:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:708:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:907:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( psO = SHPUnCompound (psCShape, &cRing)) { ^~~ shpgeo.c: In function 'RingCentroid_2d': shpgeo.c:1049:10: warning: unused variable 'dy_Area' [-Wunused-variable] double dy_Area, dx_Area, Cx_accum, Cy_accum, ppx, ppy; ^~~~~~~ shpgeo.c:1048:16: warning: unused variable 'sign_y' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1048:8: warning: unused variable 'sign_x' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1047:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1152:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if ( ti > psCShape->panPartStart[Ring] & ti < last_vtx ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:1122:35: warning: unused variable 'v2' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c:1122:31: warning: unused variable 'v1' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c: In function 'SHPArea_2d': shpgeo.c:1191:26: warning: unused variable 'ringDir' [-Wunused-variable] int ring, ring_vtx, ringDir, ring_nVertices; ^~~~~~~ shpgeo.c: In function 'RingLength_2d': shpgeo.c:1269:13: warning: variable 'j' set but not used [-Wunused-but-set-variable] int i, j; ^ shpgeo.c: In function 'RingArea_2d': shpgeo.c:1292:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPClone': shpgeo.c:1482:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( highPart = psCShape->nParts ) ^~~~~~~~ shpgeo.c: In function 'SwapG': shpgeo.c:1539:19: warning: unused variable 'temp' [-Wunused-variable] unsigned char temp; ^~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:342:3: warning: ignoring return value of 'realloc', declared with attribute warn_unused_result [-Wunused-result] realloc (stream_obj, obj_storage ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC shpdata-shpdata.o shpdata.c: In function 'main': shpdata.c:90:11: warning: unused variable 'j' [-Wunused-variable] int j, numVtx, rStart; ^ shpdata.c:84:25: warning: variable 'prevStart' set but not used [-Wunused-but-set-variable] int ring, prevStart, ringDir; ^~~~~~~~~ shpdata.c:79:7: warning: unused variable 'res' [-Wunused-variable] int res ; ^~~ shpdata.c:59:27: warning: unused variable 'cent_pt' [-Wunused-variable] SHPObject *psCShape, *cent_pt; ^~~~~~~ shpdata.c:56:10: warning: unused variable 'Cpan' [-Wunused-variable] int Cpan[2] = { 0,0 }; ^~~~ shpdata.c:55:11: warning: unused variable 'DBFRow' [-Wunused-variable] char *DBFRow = NULL; ^~~~~~ shpdata.c:54:10: warning: unused variable 'dbfFileName' [-Wunused-variable] char dbfFileName[120] = ""; ^~~~~~~~~~~ shpdata.c:53:10: warning: unused variable 'shpFileName' [-Wunused-variable] char shpFileName[120] = ""; ^~~~~~~~~~~ shpdata.c:52:10: warning: unused variable 'fldName' [-Wunused-variable] char fldName[120] = ""; ^~~~~~~ shpdata.c:51:10: warning: unused variable 'idfldName' [-Wunused-variable] char idfldName[120] = ""; ^~~~~~~~~ shpdata.c:50:10: warning: unused variable 'kv' [-Wunused-variable] char kv[257] = ""; ^~ shpdata.c:49:17: warning: unused variable 'nflds' [-Wunused-variable] int idfld, nflds; ^~~~~ shpdata.c:49:10: warning: unused variable 'idfld' [-Wunused-variable] int idfld, nflds; ^~~~~ shpdata.c:48:19: warning: unused variable 'idfld_type' [-Wunused-variable] DBFFieldType idfld_type; ^~~~~~~~~~ shpdata.c:47:18: warning: unused variable 'pszPlus' [-Wunused-variable] const char *pszPlus; ^~~~~~~ shpdata.c:46:26: warning: unused variable 'adBounds' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~ shpdata.c:46:13: warning: unused variable 'padVertices' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~~~~ shpdata.c:45:66: warning: unused variable 'iPart' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~ shpdata.c:45:53: warning: unused variable 'panParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~ shpdata.c:45:44: warning: unused variable 'nParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~ shpdata.c:45:33: warning: unused variable 'nVertices' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~~ shpdata.c:44:26: warning: unused variable 'new_DBF' [-Wunused-variable] DBFHandle old_DBF, new_DBF; ^~~~~~~ shpdata.c:43:24: warning: unused variable 'new_SHP' [-Wunused-variable] SHPHandle old_SHP, new_SHP; ^~~~~~~ Shape_PointInPoly.cpp:43:13: warning: 'rcsid' defined but not used [-Wunused-variable] static char rcsid[] = ^~~~~ CC shpdata-shpgeo.o CC shpinfo-shpinfo.o shpinfo.c: In function 'main': shpinfo.c:102:23: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=] printf ("%s(%d), %ld Records in file\n",sType,nShapeType,nEntities); ~~^ %d shpinfo.c:58:18: warning: unused variable 'cpszPlus' [-Wunused-variable] const char *cpszPlus; ^~~~~~~~ shpinfo.c:57:27: warning: unused variable 'cadBounds' [-Wunused-variable] double *cpadVertices, cadBounds[4]; ^~~~~~~~~ shpinfo.c:57:13: warning: unused variable 'cpadVertices' [-Wunused-variable] double *cpadVertices, cadBounds[4]; ^~~~~~~~~~~~ shpinfo.c:56:68: warning: unused variable 'cPart' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~~~~ shpinfo.c:56:64: warning: unused variable 'ci' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~ shpinfo.c:56:53: warning: unused variable 'cpanParts' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~~~~~~~~ shpinfo.c:56:44: warning: unused variable 'cParts' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~~~~~ shpinfo.c:56:33: warning: unused variable 'cVertices' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~~~~~~~~ shpinfo.c:56:22: warning: unused variable 'cEntities' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~~~~~~~~ shpinfo.c:56:10: warning: unused variable 'cShapeType' [-Wunused-variable] int cShapeType, cEntities, cVertices, cParts, *cpanParts, ci, cPart; ^~~~~~~~~~ shpinfo.c:55:18: warning: unused variable 'pszPlus' [-Wunused-variable] const char *pszPlus; ^~~~~~~ shpinfo.c:54:13: warning: unused variable 'padVertices' [-Wunused-variable] double *padVertices, adfBndsMin[4], adfBndsMax[4]; ^~~~~~~~~~~ shpinfo.c:53:66: warning: unused variable 'iPart' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~ shpinfo.c:53:63: warning: unused variable 'i' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^ shpinfo.c:53:53: warning: unused variable 'panParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~ shpinfo.c:53:44: warning: unused variable 'nParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~ shpinfo.c:53:33: warning: unused variable 'nVertices' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~~ shpinfo.c:52:21: warning: unused variable 'cSHP' [-Wunused-variable] SHPHandle hSHP, cSHP; ^~~~ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1146:82: warning: 'ti' may be used uninitialized in this function [-Wmaybe-uninitialized] printf ("(shpgeo:SHPRingDir) highest Rightmost Pt is vtx %d (%f, %f)\n", ti, a[ti], b[ti]); ^ CC shpinfo-shpgeo.o shpgeo.c: In function 'SHPReadSHPStream': shpgeo.c:276:5: warning: unused variable 'obj_storage' [-Wunused-variable] int obj_storage; ^~~~~~~~~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:335:30: warning: unused variable 'GeoType' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~ shpgeo.c:335:20: warning: unused variable 'my_order' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~~ shpgeo.c: In function 'SHPReadOGisWKB': shpgeo.c:416:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:416:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:415:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType = 0; ^~~~~~~~~ shpgeo.c:413:14: warning: variable 'psCShape' set but not used [-Wunused-but-set-variable] SHPObject *psCShape; ^~~~~~~~ shpgeo.c: In function 'SHPWriteOGisWKB': shpgeo.c:462:3: warning: "/*" within comment [-Wcomment] /* rather have it predicatable system-to-system */ shpgeo.c:477:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf (" I just allocated %d bytes to wkbObj \n", ~^ %ld sizeof (int) + sizeof (int) + sizeof(int) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(int) * psCShape->nParts + 1 ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(double) * 2 * psCShape->nVertices ) + 10 ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:498:31: warning: format '%d' expects a matching 'int' argument [-Wformat=] printf ("this system in (%d) LSB \n"); ~^ shpgeo.c:457:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:457:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:456:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType, thisDim; ^~~~~~~~~ shpgeo.c: In function 'SHPWriteOGisPolygon': shpgeo.c:538:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c: In function 'SHPReadOGisPolygon': shpgeo.c:643:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:643:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:641:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPReadOGisLine': shpgeo.c:710:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ CC shpproj-shpproj.o shpgeo.c:710:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:708:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:907:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( psO = SHPUnCompound (psCShape, &cRing)) { ^~~ shpgeo.c: In function 'RingCentroid_2d': shpgeo.c:1049:10: warning: unused variable 'dy_Area' [-Wunused-variable] double dy_Area, dx_Area, Cx_accum, Cy_accum, ppx, ppy; ^~~~~~~ shpgeo.c:1048:16: warning: unused variable 'sign_y' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1048:8: warning: unused variable 'sign_x' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1047:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1152:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if ( ti > psCShape->panPartStart[Ring] & ti < last_vtx ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:1122:35: warning: unused variable 'v2' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c:1122:31: warning: unused variable 'v1' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c: In function 'SHPArea_2d': shpgeo.c:1191:26: warning: unused variable 'ringDir' [-Wunused-variable] int ring, ring_vtx, ringDir, ring_nVertices; ^~~~~~~ shpgeo.c: In function 'RingLength_2d': shpgeo.c:1269:13: warning: variable 'j' set but not used [-Wunused-but-set-variable] int i, j; ^ shpgeo.c: In function 'RingArea_2d': shpgeo.c:1292:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPClone': shpgeo.c:1482:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( highPart = psCShape->nParts ) ^~~~~~~~ shpgeo.c: In function 'SwapG': shpgeo.c:1539:19: warning: unused variable 'temp' [-Wunused-variable] unsigned char temp; ^~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:342:3: warning: ignoring return value of 'realloc', declared with attribute warn_unused_result [-Wunused-result] realloc (stream_obj, obj_storage ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:901:24: warning: 'nPIP' may be used uninitialized in this function [-Wmaybe-uninitialized] int *CLstt, *CLst, nPIP, ring, rMpart, ring_vtx, ring_nVertices; ^~~~ shpgeo.c:945:11: warning: 'rLenMax' may be used uninitialized in this function [-Wmaybe-uninitialized] if ( rLen > rLenMax ) ^ shpgeo.c:941:13: warning: 'rLen' may be used uninitialized in this function [-Wmaybe-uninitialized] rLen += RingLength_2d ( ring_nVertices, ^~ shpgeo.c:956:35: warning: 'rMpart' may be used uninitialized in this function [-Wmaybe-uninitialized] PIP[nPIP].x = (psInt ->padfX [rMpart] + psInt ->padfX [rMpart]) * 0.5; ^ shpgeo.c: In function 'SHPReadSHPStream': shpgeo.c:276:5: warning: unused variable 'obj_storage' [-Wunused-variable] int obj_storage; ^~~~~~~~~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:335:30: warning: unused variable 'GeoType' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~ shpgeo.c:335:20: warning: unused variable 'my_order' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~~ shpgeo.c: In function 'SHPReadOGisWKB': shpgeo.c:416:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:416:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:415:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType = 0; ^~~~~~~~~ shpgeo.c:413:14: warning: variable 'psCShape' set but not used [-Wunused-but-set-variable] SHPObject *psCShape; ^~~~~~~~ shpgeo.c: In function 'SHPWriteOGisWKB': shpgeo.c:462:3: warning: "/*" within comment [-Wcomment] /* rather have it predicatable system-to-system */ shpgeo.c:477:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf (" I just allocated %d bytes to wkbObj \n", ~^ %ld sizeof (int) + sizeof (int) + sizeof(int) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(int) * psCShape->nParts + 1 ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(double) * 2 * psCShape->nVertices ) + 10 ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:498:31: warning: format '%d' expects a matching 'int' argument [-Wformat=] printf ("this system in (%d) LSB \n"); ~^ shpgeo.c:457:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:457:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:456:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType, thisDim; ^~~~~~~~~ shpgeo.c: In function 'SHPWriteOGisPolygon': shpgeo.c:538:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c: In function 'SHPReadOGisPolygon': shpgeo.c:643:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:643:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:641:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPReadOGisLine': shpgeo.c:710:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:710:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:708:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:907:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( psO = SHPUnCompound (psCShape, &cRing)) { ^~~ shpgeo.c: In function 'RingCentroid_2d': shpgeo.c:1049:10: warning: unused variable 'dy_Area' [-Wunused-variable] double dy_Area, dx_Area, Cx_accum, Cy_accum, ppx, ppy; ^~~~~~~ shpgeo.c:1048:16: warning: unused variable 'sign_y' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1048:8: warning: unused variable 'sign_x' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1047:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1152:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if ( ti > psCShape->panPartStart[Ring] & ti < last_vtx ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:1122:35: warning: unused variable 'v2' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c:1122:31: warning: unused variable 'v1' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c: In function 'SHPArea_2d': shpgeo.c:1191:26: warning: unused variable 'ringDir' [-Wunused-variable] int ring, ring_vtx, ringDir, ring_nVertices; ^~~~~~~ shpgeo.c: In function 'RingLength_2d': shpgeo.c:1269:13: warning: variable 'j' set but not used [-Wunused-but-set-variable] int i, j; ^ shpgeo.c: In function 'RingArea_2d': shpgeo.c:1292:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPClone': shpgeo.c:1482:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( highPart = psCShape->nParts ) ^~~~~~~~ shpgeo.c: In function 'SwapG': shpgeo.c:1539:19: warning: unused variable 'temp' [-Wunused-variable] unsigned char temp; ^~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:342:3: warning: ignoring return value of 'realloc', declared with attribute warn_unused_result [-Wunused-result] realloc (stream_obj, obj_storage ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpproj.c: In function 'main': shpproj.c:223:7: warning: unused variable 'j' [-Wunused-variable] int j; ^ shpproj.c:96:21: warning: unused variable 'moargs' [-Wunused-variable] va_list myargs, moargs; ^~~~~~ shpproj.c:96:13: warning: unused variable 'myargs' [-Wunused-variable] va_list myargs, moargs; ^~~~~~ shpproj.c:82:12: warning: unused variable 'apeture' [-Wunused-variable] double apeture[4]; ^~~~~~~ shpproj.c:79:10: warning: unused variable 'dbfFileName' [-Wunused-variable] char dbfFileName[120] = ""; ^~~~~~~~~~~ shpproj.c:78:10: warning: unused variable 'shpFileName' [-Wunused-variable] char shpFileName[120] = ""; ^~~~~~~~~~~ shpproj.c:77:10: warning: unused variable 'fldName' [-Wunused-variable] char fldName[120] = ""; ^~~~~~~ shpproj.c:76:10: warning: unused variable 'idfldName' [-Wunused-variable] char idfldName[120] = ""; ^~~~~~~~~ shpproj.c:75:10: warning: unused variable 'kv' [-Wunused-variable] char kv[257] = ""; ^~ shpproj.c:74:17: warning: unused variable 'nflds' [-Wunused-variable] int idfld, nflds; ^~~~~ shpproj.c:74:10: warning: unused variable 'idfld' [-Wunused-variable] int idfld, nflds; ^~~~~ shpproj.c:71:19: warning: unused variable 'idfld_type' [-Wunused-variable] DBFFieldType idfld_type; ^~~~~~~~~~ shpproj.c:70:18: warning: unused variable 'pszPlus' [-Wunused-variable] const char *pszPlus; ^~~~~~~ shpproj.c:69:26: warning: unused variable 'adBounds' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~ shpproj.c:69:13: warning: unused variable 'padVertices' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~~~~ shpproj.c:68:66: warning: unused variable 'iPart' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart, j; ^~~~~ shpproj.c:68:53: warning: unused variable 'panParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart, j; ^~~~~~~~ shpproj.c:68:44: warning: unused variable 'nParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart, j; ^~~~~~ shpproj.c:68:33: warning: unused variable 'nVertices' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart, j; ^~~~~~~~~ CC shpproj-shpgeo.o CC shpwkb-shpwkb.o shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1146:82: warning: 'ti' may be used uninitialized in this function [-Wmaybe-uninitialized] printf ("(shpgeo:SHPRingDir) highest Rightmost Pt is vtx %d (%f, %f)\n", ti, a[ti], b[ti]); ^ shpgeo.c: In function 'SHPReadSHPStream': shpgeo.c:276:5: warning: unused variable 'obj_storage' [-Wunused-variable] int obj_storage; ^~~~~~~~~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:335:30: warning: unused variable 'GeoType' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~ shpgeo.c:335:20: warning: unused variable 'my_order' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~~ shpgeo.c: In function 'SHPReadOGisWKB': shpgeo.c:416:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:416:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:415:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType = 0; ^~~~~~~~~ shpgeo.c:413:14: warning: variable 'psCShape' set but not used [-Wunused-but-set-variable] SHPObject *psCShape; ^~~~~~~~ shpgeo.c: In function 'SHPWriteOGisWKB': shpgeo.c:462:3: warning: "/*" within comment [-Wcomment] /* rather have it predicatable system-to-system */ shpgeo.c:477:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf (" I just allocated %d bytes to wkbObj \n", ~^ %ld sizeof (int) + sizeof (int) + sizeof(int) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(int) * psCShape->nParts + 1 ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(double) * 2 * psCShape->nVertices ) + 10 ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:498:31: warning: format '%d' expects a matching 'int' argument [-Wformat=] printf ("this system in (%d) LSB \n"); ~^ shpgeo.c:457:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:457:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:456:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType, thisDim; ^~~~~~~~~ shpgeo.c: In function 'SHPWriteOGisPolygon': shpgeo.c:538:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c: In function 'SHPReadOGisPolygon': shpgeo.c:643:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:643:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:641:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPReadOGisLine': shpgeo.c:710:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:710:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:708:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:907:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( psO = SHPUnCompound (psCShape, &cRing)) { ^~~ shpgeo.c: In function 'RingCentroid_2d': shpgeo.c:1049:10: warning: unused variable 'dy_Area' [-Wunused-variable] double dy_Area, dx_Area, Cx_accum, Cy_accum, ppx, ppy; ^~~~~~~ shpgeo.c:1048:16: warning: unused variable 'sign_y' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1048:8: warning: unused variable 'sign_x' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1047:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1152:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if ( ti > psCShape->panPartStart[Ring] & ti < last_vtx ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:1122:35: warning: unused variable 'v2' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c:1122:31: warning: unused variable 'v1' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c: In function 'SHPArea_2d': shpgeo.c:1191:26: warning: unused variable 'ringDir' [-Wunused-variable] int ring, ring_vtx, ringDir, ring_nVertices; ^~~~~~~ shpgeo.c: In function 'RingLength_2d': shpgeo.c:1269:13: warning: variable 'j' set but not used [-Wunused-but-set-variable] int i, j; ^ shpgeo.c: In function 'RingArea_2d': shpgeo.c:1292:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPClone': shpgeo.c:1482:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( highPart = psCShape->nParts ) ^~~~~~~~ shpgeo.c: In function 'SwapG': shpgeo.c:1539:19: warning: unused variable 'temp' [-Wunused-variable] unsigned char temp; ^~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:342:3: warning: ignoring return value of 'realloc', declared with attribute warn_unused_result [-Wunused-result] realloc (stream_obj, obj_storage ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpwkb.c: In function 'main': shpwkb.c:93:11: warning: unused variable 'j' [-Wunused-variable] int j, numVtx, rStart; ^ shpwkb.c:88:13: warning: unused variable 'ringArea' [-Wunused-variable] double ringArea; ^~~~~~~~ shpwkb.c:87:36: warning: unused variable 'ringDir' [-Wunused-variable] int ring, prevStart, ringDir; ^~~~~~~ shpwkb.c:87:25: warning: variable 'prevStart' set but not used [-Wunused-but-set-variable] int ring, prevStart, ringDir; ^~~~~~~~~ shpwkb.c:82:7: warning: variable 'res' set but not used [-Wunused-but-set-variable] int res ; ^~~ shpwkb.c:58:25: warning: unused variable 'oLen' [-Wunused-variable] double oArea = 0.0, oLen = 0.0; ^~~~ shpwkb.c:58:12: warning: unused variable 'oArea' [-Wunused-variable] double oArea = 0.0, oLen = 0.0; ^~~~~ shpwkb.c:57:27: warning: unused variable 'cent_pt' [-Wunused-variable] SHPObject *psCShape, *cent_pt; ^~~~~~~ shpwkb.c:56:18: warning: unused variable 'ringCentrd' [-Wunused-variable] PT oCentrd, ringCentrd; ^~~~~~~~~~ shpwkb.c:56:9: warning: unused variable 'oCentrd' [-Wunused-variable] PT oCentrd, ringCentrd; ^~~~~~~ shpwkb.c:54:10: warning: unused variable 'Cpan' [-Wunused-variable] int Cpan[2] = { 0,0 }; ^~~~ shpwkb.c:53:11: warning: unused variable 'DBFRow' [-Wunused-variable] char *DBFRow = NULL; ^~~~~~ shpwkb.c:52:10: warning: unused variable 'dbfFileName' [-Wunused-variable] char dbfFileName[120] = ""; ^~~~~~~~~~~ shpwkb.c:51:10: warning: unused variable 'shpFileName' [-Wunused-variable] char shpFileName[120] = ""; ^~~~~~~~~~~ shpwkb.c:50:10: warning: unused variable 'fldName' [-Wunused-variable] char fldName[120] = ""; ^~~~~~~ shpwkb.c:49:10: warning: unused variable 'idfldName' [-Wunused-variable] char idfldName[120] = ""; ^~~~~~~~~ shpwkb.c:48:10: warning: unused variable 'kv' [-Wunused-variable] char kv[257] = ""; ^~ shpwkb.c:47:17: warning: unused variable 'nflds' [-Wunused-variable] int idfld, nflds; ^~~~~ shpwkb.c:47:10: warning: unused variable 'idfld' [-Wunused-variable] int idfld, nflds; ^~~~~ shpwkb.c:46:19: warning: unused variable 'idfld_type' [-Wunused-variable] DBFFieldType idfld_type; ^~~~~~~~~~ shpwkb.c:45:18: warning: unused variable 'pszPlus' [-Wunused-variable] const char *pszPlus; ^~~~~~~ shpwkb.c:44:26: warning: unused variable 'adBounds' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~ shpwkb.c:44:13: warning: unused variable 'padVertices' [-Wunused-variable] double *padVertices, adBounds[4]; ^~~~~~~~~~~ shpwkb.c:43:66: warning: unused variable 'iPart' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~ shpwkb.c:43:53: warning: unused variable 'panParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~ shpwkb.c:43:44: warning: unused variable 'nParts' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~ shpwkb.c:43:33: warning: unused variable 'nVertices' [-Wunused-variable] int nShapeType, nEntities, nVertices, nParts, *panParts, i, iPart; ^~~~~~~~~ shpwkb.c:42:26: warning: unused variable 'new_DBF' [-Wunused-variable] DBFHandle old_DBF, new_DBF; ^~~~~~~ shpwkb.c:41:24: warning: unused variable 'new_SHP' [-Wunused-variable] SHPHandle old_SHP, new_SHP; ^~~~~~~ CC shpwkb-shpgeo.o shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1146:82: warning: 'ti' may be used uninitialized in this function [-Wmaybe-uninitialized] printf ("(shpgeo:SHPRingDir) highest Rightmost Pt is vtx %d (%f, %f)\n", ti, a[ti], b[ti]); ^ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:901:24: warning: 'nPIP' may be used uninitialized in this function [-Wmaybe-uninitialized] int *CLstt, *CLst, nPIP, ring, rMpart, ring_vtx, ring_nVertices; ^~~~ shpgeo.c:945:11: warning: 'rLenMax' may be used uninitialized in this function [-Wmaybe-uninitialized] if ( rLen > rLenMax ) ^ shpgeo.c:941:13: warning: 'rLen' may be used uninitialized in this function [-Wmaybe-uninitialized] rLen += RingLength_2d ( ring_nVertices, ^~ shpgeo.c:956:35: warning: 'rMpart' may be used uninitialized in this function [-Wmaybe-uninitialized] PIP[nPIP].x = (psInt ->padfX [rMpart] + psInt ->padfX [rMpart]) * 0.5; ^ CCLD dbfcat shpgeo.c: In function 'SHPReadSHPStream': shpgeo.c:276:5: warning: unused variable 'obj_storage' [-Wunused-variable] int obj_storage; ^~~~~~~~~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:335:30: warning: unused variable 'GeoType' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~ shpgeo.c:335:20: warning: unused variable 'my_order' [-Wunused-variable] int need_swap = 0, my_order, GeoType; ^~~~~~~~ shpgeo.c: In function 'SHPReadOGisWKB': shpgeo.c:416:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:416:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:415:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType = 0; ^~~~~~~~~ shpgeo.c:413:14: warning: variable 'psCShape' set but not used [-Wunused-but-set-variable] SHPObject *psCShape; ^~~~~~~~ shpgeo.c: In function 'SHPWriteOGisWKB': shpgeo.c:462:3: warning: "/*" within comment [-Wcomment] /* rather have it predicatable system-to-system */ shpgeo.c:477:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf (" I just allocated %d bytes to wkbObj \n", ~^ %ld sizeof (int) + sizeof (int) + sizeof(int) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(int) * psCShape->nParts + 1 ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( sizeof(double) * 2 * psCShape->nVertices ) + 10 ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:498:31: warning: format '%d' expects a matching 'int' argument [-Wformat=] printf ("this system in (%d) LSB \n"); ~^ shpgeo.c:457:19: warning: unused variable 'use_M' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:457:8: warning: unused variable 'use_Z' [-Wunused-variable] int use_Z = 0, use_M = 0; ^~~~~ shpgeo.c:456:8: warning: unused variable 'need_swap' [-Wunused-variable] int need_swap = 0, my_order, GeoType, thisDim; ^~~~~~~~~ shpgeo.c: In function 'SHPWriteOGisPolygon': shpgeo.c:538:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c: In function 'SHPReadOGisPolygon': shpgeo.c:643:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:643:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:641:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPReadOGisLine': shpgeo.c:710:59: warning: unused variable 'i' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^ shpgeo.c:710:49: warning: unused variable 'nextring' [-Wunused-variable] int rPart, ring, rVertices, cpart, cParts, nextring, i, j; ^~~~~~~~ shpgeo.c:708:17: warning: unused variable 'ppsC' [-Wunused-variable] SHPObject **ppsC; ^~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:907:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( psO = SHPUnCompound (psCShape, &cRing)) { ^~~ shpgeo.c: In function 'RingCentroid_2d': shpgeo.c:1049:10: warning: unused variable 'dy_Area' [-Wunused-variable] double dy_Area, dx_Area, Cx_accum, Cy_accum, ppx, ppy; ^~~~~~~ shpgeo.c:1048:16: warning: unused variable 'sign_y' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1048:8: warning: unused variable 'sign_x' [-Wunused-variable] int sign_x, sign_y; ^~~~~~ shpgeo.c:1047:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1152:12: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if ( ti > psCShape->panPartStart[Ring] & ti < last_vtx ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c:1122:35: warning: unused variable 'v2' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c:1122:31: warning: unused variable 'v1' [-Wunused-variable] double dx0, dx1, dy0, dy1, v1, v2 ,v3; ^~ shpgeo.c: In function 'SHPArea_2d': shpgeo.c:1191:26: warning: unused variable 'ringDir' [-Wunused-variable] int ring, ring_vtx, ringDir, ring_nVertices; ^~~~~~~ shpgeo.c: In function 'RingLength_2d': shpgeo.c:1269:13: warning: variable 'j' set but not used [-Wunused-but-set-variable] int i, j; ^ shpgeo.c: In function 'RingArea_2d': shpgeo.c:1292:11: warning: unused variable 'jv' [-Wunused-variable] int iv,jv; ^~ shpgeo.c: In function 'SHPClone': shpgeo.c:1482:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if ( highPart = psCShape->nParts ) ^~~~~~~~ shpgeo.c: In function 'SwapG': shpgeo.c:1539:19: warning: unused variable 'temp' [-Wunused-variable] unsigned char temp; ^~~~ shpgeo.c: In function 'SHPWriteSHPStream': shpgeo.c:342:3: warning: ignoring return value of 'realloc', declared with attribute warn_unused_result [-Wunused-result] realloc (stream_obj, obj_storage ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:901:24: warning: 'nPIP' may be used uninitialized in this function [-Wmaybe-uninitialized] int *CLstt, *CLst, nPIP, ring, rMpart, ring_vtx, ring_nVertices; ^~~~ shpgeo.c:945:11: warning: 'rLenMax' may be used uninitialized in this function [-Wmaybe-uninitialized] if ( rLen > rLenMax ) ^ shpgeo.c:941:13: warning: 'rLen' may be used uninitialized in this function [-Wmaybe-uninitialized] rLen += RingLength_2d ( ring_nVertices, ^~ shpgeo.c:956:35: warning: 'rMpart' may be used uninitialized in this function [-Wmaybe-uninitialized] PIP[nPIP].x = (psInt ->padfX [rMpart] + psInt ->padfX [rMpart]) * 0.5; ^ shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1146:82: warning: 'ti' may be used uninitialized in this function [-Wmaybe-uninitialized] printf ("(shpgeo:SHPRingDir) highest Rightmost Pt is vtx %d (%f, %f)\n", ti, a[ti], b[ti]); ^ CCLD dbfinfo shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:901:24: warning: 'nPIP' may be used uninitialized in this function [-Wmaybe-uninitialized] int *CLstt, *CLst, nPIP, ring, rMpart, ring_vtx, ring_nVertices; ^~~~ shpgeo.c:945:11: warning: 'rLenMax' may be used uninitialized in this function [-Wmaybe-uninitialized] if ( rLen > rLenMax ) ^ shpgeo.c:941:13: warning: 'rLen' may be used uninitialized in this function [-Wmaybe-uninitialized] rLen += RingLength_2d ( ring_nVertices, ^~ shpgeo.c:956:35: warning: 'rMpart' may be used uninitialized in this function [-Wmaybe-uninitialized] PIP[nPIP].x = (psInt ->padfX [rMpart] + psInt ->padfX [rMpart]) * 0.5; ^ CCLD shpcat shpgeo.c: In function 'SHPRingDir_2d': shpgeo.c:1146:82: warning: 'ti' may be used uninitialized in this function [-Wmaybe-uninitialized] printf ("(shpgeo:SHPRingDir) highest Rightmost Pt is vtx %d (%f, %f)\n", ti, a[ti], b[ti]); ^ CCLD shpdxf CCLD shpfix shpgeo.c: In function 'SHPPointsinPoly_2d': shpgeo.c:901:24: warning: 'nPIP' may be used uninitialized in this function [-Wmaybe-uninitialized] int *CLstt, *CLst, nPIP, ring, rMpart, ring_vtx, ring_nVertices; ^~~~ shpgeo.c:945:11: warning: 'rLenMax' may be used uninitialized in this function [-Wmaybe-uninitialized] if ( rLen > rLenMax ) ^ shpgeo.c:941:13: warning: 'rLen' may be used uninitialized in this function [-Wmaybe-uninitialized] rLen += RingLength_2d ( ring_nVertices, ^~ shpgeo.c:956:35: warning: 'rMpart' may be used uninitialized in this function [-Wmaybe-uninitialized] PIP[nPIP].x = (psInt ->padfX [rMpart] + psInt ->padfX [rMpart]) * 0.5; ^ CCLD shpsort CXXLD Shape_PointInPoly CCLD shpcentrd CCLD shpdata CCLD shpinfo CCLD shpproj CCLD shpwkb make[1]: Leaving directory '/builddir/build/BUILD/shapelib-1.3.0/contrib' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.8rkbcr + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 + cd shapelib-1.3.0 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 'INSTALL=/usr/bin/install -p' Making install in . make[1]: Entering directory '/builddir/build/BUILD/shapelib-1.3.0' make[2]: Entering directory '/builddir/build/BUILD/shapelib-1.3.0' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64' /bin/sh ./libtool --mode=install /usr/bin/install -p libshp.la '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64' libtool: install: /usr/bin/install -p .libs/libshp.so.1.0.1 /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64/libshp.so.1.0.1 libtool: install: (cd /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64 && { ln -s -f libshp.so.1.0.1 libshp.so.1 || { rm -f libshp.so.1 && ln -s libshp.so.1.0.1 libshp.so.1; }; }) libtool: install: (cd /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64 && { ln -s -f libshp.so.1.0.1 libshp.so || { rm -f libshp.so && ln -s libshp.so.1.0.1 libshp.so; }; }) libtool: install: /usr/bin/install -p .libs/libshp.lai /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64/libshp.la libtool: warning: remember to run 'libtool --finish /usr/lib64' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin' /bin/sh ./libtool --mode=install /usr/bin/install -p dbfadd dbfcreate dbfdump shpadd shpcreate shpdump shprewind shptreedump shputils '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin' libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/dbfadd /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/dbfadd libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/dbfcreate /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/dbfcreate libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/dbfdump /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/dbfdump libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpadd /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpadd libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpcreate /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpcreate libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpdump /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpdump libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shprewind /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shprewind libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shptreedump /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shptreedump libtool: warning: './libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shputils /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shputils /usr/bin/mkdir -p '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/include' /usr/bin/install -p -m 644 shapefil.h '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/include' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64/pkgconfig' /usr/bin/install -p -m 644 shapelib.pc '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/lib64/pkgconfig' make[2]: Leaving directory '/builddir/build/BUILD/shapelib-1.3.0' make[1]: Leaving directory '/builddir/build/BUILD/shapelib-1.3.0' Making install in contrib make[1]: Entering directory '/builddir/build/BUILD/shapelib-1.3.0/contrib' make[2]: Entering directory '/builddir/build/BUILD/shapelib-1.3.0/contrib' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin' /bin/sh ../libtool --mode=install /usr/bin/install -p dbfcat dbfinfo shpcat shpdxf shpfix shpsort Shape_PointInPoly shpcentrd shpdata shpinfo shpproj shpwkb '/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin' libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/dbfcat /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/dbfcat libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/dbfinfo /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/dbfinfo libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpcat /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpcat libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpdxf /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpdxf libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpfix /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpfix libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpsort /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpsort libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/Shape_PointInPoly /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/Shape_PointInPoly libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpcentrd /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpcentrd libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpdata /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpdata libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpinfo /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpinfo libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpproj /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpproj libtool: warning: '../libshp.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/shpwkb /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/bin/shpwkb make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/shapelib-1.3.0/contrib' make[1]: Leaving directory '/builddir/build/BUILD/shapelib-1.3.0/contrib' + find /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 -name '*.la' -exec rm -f '{}' ';' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: shapelib-1.3.0f-9.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xDwpLq + umask 022 + cd /builddir/build/BUILD + cd shapelib-1.3.0 + DOCDIR=/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib + cp -pr README /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib + cp -pr README.tree /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib + cp -pr ChangeLog /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib + cp -pr web/codepage.html web/dbf_api.html web/index.html web/license.html web/manifest.html web/release.html web/shapelib-tools.html web/shp_api.html /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.5capKX + umask 022 + cd /builddir/build/BUILD + cd shapelib-1.3.0 + LICENSEDIR=/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/licenses/shapelib + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/licenses/shapelib + cp -pr COPYING /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/licenses/shapelib + exit 0 Provides: libshp.so.1()(64bit) shapelib = 1.3.0f-9.fc28 shapelib(riscv-64) = 1.3.0f-9.fc28 Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Processing files: shapelib-devel-1.3.0f-9.fc28.riscv64 Provides: pkgconfig(shapelib) = 1.3.0 shapelib-devel = 1.3.0f-9.fc28 shapelib-devel(riscv-64) = 1.3.0f-9.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/pkg-config libshp.so.1()(64bit) Processing files: shapelib-tools-1.3.0f-9.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.9CFzfO + umask 022 + cd /builddir/build/BUILD + cd shapelib-1.3.0 + DOCDIR=/builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib-tools + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib-tools + cp -pr contrib/doc/ /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64/usr/share/doc/shapelib-tools + exit 0 Provides: shapelib-tools = 1.3.0f-9.fc28 shapelib-tools(riscv-64) = 1.3.0f-9.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libgcc_s.so.1()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libproj.so.9()(64bit) libshp.so.1()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 Wrote: /builddir/build/SRPMS/shapelib-1.3.0f-9.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/shapelib-1.3.0f-9.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/shapelib-devel-1.3.0f-9.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/shapelib-tools-1.3.0f-9.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.IucDh1 + umask 022 + cd /builddir/build/BUILD + cd shapelib-1.3.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/shapelib-1.3.0f-9.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff