Opened 6 years ago

Last modified 2 years ago

#3368 new defect

warnings and errors in compilation log

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 7.4.5
Component: Compiling Version: svn-trunk
Keywords: Cc:
CPU: Unspecified Platform: All

Description

looking into the package.log regarding warnings and errors during compilations in windows (zipped log file attached), there are some warnings and error (AFAIR I've seen them also in my debian 9):

e.g.

make[3]: Leaving directory '/c/msys64/usr/src/grass_trunk/lib/display'
make[3]: Entering directory '/c/msys64/usr/src/grass_trunk/lib/db'
make -C dbmi_base || echo /c/msys64/usr/src/grass_trunk/lib/db/dbmi_base >> /c/msys64/usr/src/grass_trunk/error.log
make[4]: Entering directory '/c/msys64/usr/src/grass_trunk/lib/db/dbmi_base'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/alloc.o -c alloc.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/case.o -c case.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/column.o -c column.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/columnfmt.o -c columnfmt.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/connect.o -c connect.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/cursor.o -c cursor.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/datetime.o -c datetime.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/dbmscap.o -c dbmscap.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/default_name.o -c default_name.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/dirent.o -c dirent.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/error.o -c error.c
error.c: In function 'db_noproc_error':
error.c:159:6: warning: type of 'procnum' defaults to 'int' [-Wimplicit-int]
 void db_noproc_error(procnum)
      ^
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/handle.o -c handle.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/index.o -c index.c
gcc -I/c/OSGeo4W64/include -g -O2   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"lib/db/dbmi_base\" -o OBJ.x86_64-w64-mingw32/interval.o -c interval.c
exec.c: In function 'exec_rectify':
exec.c:61:11: warning: passing argument 1 of 'time' from incompatible pointer type [-Wincompatible-pointer-types]
      time(&start_time);
           ^
In file included from exec.c:14:0:
C:/msys64/mingw64/x86_64-w64-mingw32/include/time.h:212:29: note: expected 'time_t * {aka long long int *}' but argument is of type 'long int *'
 __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); }
                             ^
exec.c:80:8: warning: passing argument 1 of 'time' from incompatible pointer type [-Wincompatible-pointer-types]
   time(&rectify_time);
        ^
In file included from exec.c:14:0:
C:/msys64/mingw64/x86_64-w64-mingw32/include/time.h:212:29: note: expected 'time_t * {aka long long int *}' but argument is of type 'long int *'
 __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); }
make -C i.aster.toar || echo /c/msys64/usr/src/grass_trunk/imagery/i.aster.toar >> /c/msys64/usr/src/grass_trunk/error.log
make[3]: Entering directory '/c/msys64/usr/src/grass_trunk/imagery/i.aster.toar'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"imagery/i.aster.toar\" -o OBJ.x86_64-w64-mingw32/gain_aster.o -c gain_aster.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"imagery/i.aster.toar\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
main.c: In function 'main':
main.c:314:9: warning: iteration 14u invokes undefined behavior [-Waggressive-loop-optimizations]
         Rast_close(infd[i]);
         ^
main.c:312:5: note: containing loop
     for (i = 1; i <= MAXFILES; i++) {
     ^
main.c:310:13: warning: iteration 14u invokes undefined behavior [-Waggressive-loop-optimizations]
             Rast_put_row(outfd[i], outrast[i - 1], out_data_type);
             ^
main.c:309:9: note: containing loop
         for (i = 1; i <= MAXFILES; i++)
         ^
main.c:280:13: warning: iteration 14u invokes undefined behavior [-Waggressive-loop-optimizations]
             Rast_get_row(infd[i], inrast[i - 1], row, in_data_type[i - 1]);
             ^
main.c:279:9: note: containing loop
         for (i = 1; i <= MAXFILES; i++)
export_areas.c: In function 'export_areas_multi':
export_areas.c:199:13: warning: ignoring return value of 'OGR_L_CreateFeature', declared with attribute warn_unused_result [-Wunused-result]
             OGR_L_CreateFeature(Ogr_layer, Ogr_feature);
             ^
export_areas.c:248:9: warning: ignoring return value of 'OGR_L_CreateFeature', declared with attribute warn_unused_result [-Wunused-result]
         OGR_L_CreateFeature(Ogr_layer, Ogr_feature);
         ^
export_areas.c: In function 'export_areas_single':
export_areas.c:101:13: warning: ignoring return value of 'OGR_L_CreateFeature', declared with attribute warn_unused_result [-Wunused-result]
             OGR_L_CreateFeature(Ogr_layer, Ogr_feature);
             ^
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.out.ogr\" -o OBJ.x86_64-w64-mingw32/export_lines.o -c export_lines.c
export_lines.c: In function 'export_lines_multi':
export_lines.c:228:13: warning: ignoring return value of 'OGR_L_CreateFeature', declared with attribute warn_unused_result [-Wunused-result]
             OGR_L_CreateFeature(Ogr_layer, Ogr_feature);
             ^
export_lines.c:275:9: warning: ignoring return value of 'OGR_L_CreateFeature', declared with attribute warn_unused_result [-Wunused-result]
         OGR_L_CreateFeature(Ogr_layer, Ogr_feature);
         ^
export_lines.c: In function 'export_lines_single':
export_lines.c:135:13: warning: ignoring return value of 'OGR_L_CreateFeature', declared with attribute warn_unused_result [-Wunused-result]
             OGR_L_CreateFeature(Ogr_layer, Ogr_feature);
             ^
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.out.ogr\" -o OBJ.x86_64-w64-mingw32/list.o -c list.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.out.ogr\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
main.c: In function 'main':
main.c:714:2: warning: ignoring return value of 'OGR_L_StartTransaction', declared with attribute warn_unused_result [-Wunused-result]
  OGR_L_StartTransaction(Ogr_layer);
  ^
main.c:760:2: warning: ignoring return value of 'OGR_L_CommitTransaction', declared with attribute warn_unused_result [-Wunused-result]
  OGR_L_CommitTransaction(Ogr_layer);
  ^
make -C v.surf.rst || echo /c/msys64/usr/src/grass_trunk/vector/v.surf.rst >> /c/msys64/usr/src/grass_trunk/error.log
make[3]: Entering directory '/c/msys64/usr/src/grass_trunk/vector/v.surf.rst'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include  -DPACKAGE=\""grassmods"\"    -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.surf.rst\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
main.c: In function 'main':
main.c:642:31: warning: passing argument 41 of 'IL_init_params_2d' from incompatible pointer type [-Wincompatible-pointer-types]
         Tmp_fd_yy, Tmp_fd_xy, devi, NULL, cv,
                               ^
In file included from main.c:40:0:
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/interpf.h:115:6: note: expected 'FILE * {aka struct _iobuf *}' but argument is of type 'char *'
 void IL_init_params_2d(struct interp_params *, FILE *, int, int, double,
make -C v.lrs.where || echo /c/msys64/usr/src/grass_trunk/vector/v.lrs/v.lrs.where >> /c/msys64/usr/src/grass_trunk/error.log
make[4]: Entering directory '/c/msys64/usr/src/grass_trunk/vector/v.lrs/v.lrs.where'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.lrs/v.lrs.where\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
main.c: In function 'main':
main.c:88:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     driver_opt->answer = db_get_default_driver_name();
                        ^
main.c:95:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     database_opt->answer = db_get_default_database_name();
make[4]: Entering directory '/c/msys64/usr/src/grass_trunk/vector/v.lrs/v.lrs.label'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.lrs/v.lrs.label\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
main.c: In function 'main':
main.c:126:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     driver_opt->answer = db_get_default_driver_name();
                        ^
main.c:133:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     database_opt->answer = db_get_default_database_name();
make[3]: Entering directory '/c/msys64/usr/src/grass_trunk/vector/v.generalize'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/displacement.o -c displacement.c
In file included from displacement.c:25:0:
point.h:74:22: warning: inline function 'point_dist_segment_square' declared but never defined
 extern inline double point_dist_segment_square(POINT a, POINT b, POINT c,
                      ^
point.h:71:22: warning: inline function 'point_angle_between' declared but never defined
 extern inline double point_angle_between(POINT a, POINT b, POINT c);
                      ^
point.h:68:22: warning: inline function 'point_dist_square' declared but never defined
 extern inline double point_dist_square(POINT a, POINT b);
                      ^
point.h:65:22: warning: inline function 'point_dist' declared but never defined
 extern inline double point_dist(POINT a, POINT b);
                      ^
point.h:62:20: warning: inline function 'points_copy_last' declared but never defined
 extern inline void points_copy_last(struct line_pnts *Points, int pos);
                    ^
point.h:59:20: warning: inline function 'point_scalar' declared but never defined
 extern inline void point_scalar(POINT a, double k, POINT * res);
                    ^
point.h:51:20: warning: inline function 'point_assign' declared but never defined
 extern inline void point_assign(struct line_pnts *Points, int index,
                    ^
point.h:46:22: warning: inline function 'point_dist2' declared but never defined
 extern inline double point_dist2(POINT a);
                      ^
point.h:40:20: warning: inline function 'point_add' declared but never defined
 extern inline void point_add(POINT a, POINT b, POINT * res);
                    ^
point.h:37:20: warning: inline function 'point_subtract' declared but never defined
 extern inline void point_subtract(POINT a, POINT b, POINT * res);
                    ^
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/matrix.o -c matrix.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/misc.o -c misc.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/network.o -c network.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/point.o -c point.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/pq.o -c pq.c
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/simplification.o -c simplification.c
In file included from simplification.c:24:0:
point.h:74:22: warning: inline function 'point_dist_segment_square' declared but never defined
 extern inline double point_dist_segment_square(POINT a, POINT b, POINT c,
                      ^
point.h:71:22: warning: inline function 'point_angle_between' declared but never defined
 extern inline double point_angle_between(POINT a, POINT b, POINT c);
                      ^
point.h:68:22: warning: inline function 'point_dist_square' declared but never defined
 extern inline double point_dist_square(POINT a, POINT b);
                      ^
point.h:65:22: warning: inline function 'point_dist' declared but never defined
 extern inline double point_dist(POINT a, POINT b);
                      ^
point.h:62:20: warning: inline function 'points_copy_last' declared but never defined
 extern inline void points_copy_last(struct line_pnts *Points, int pos);
                    ^
point.h:59:20: warning: inline function 'point_scalar' declared but never defined
 extern inline void point_scalar(POINT a, double k, POINT * res);
                    ^
point.h:51:20: warning: inline function 'point_assign' declared but never defined
 extern inline void point_assign(struct line_pnts *Points, int index,
                    ^
point.h:46:22: warning: inline function 'point_dist2' declared but never defined
 extern inline double point_dist2(POINT a);
                      ^
point.h:40:20: warning: inline function 'point_add' declared but never defined
 extern inline void point_add(POINT a, POINT b, POINT * res);
                    ^
point.h:37:20: warning: inline function 'point_subtract' declared but never defined
 extern inline void point_subtract(POINT a, POINT b, POINT * res);
                    ^
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -I/c/OSGeo4W64/include -I/c/OSGeo4W64/include -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"vector/v.generalize\" -o OBJ.x86_64-w64-mingw32/smoothing.o -c smoothing.c
In file included from smoothing.c:25:0:
point.h:74:22: warning: inline function 'point_dist_segment_square' declared but never defined
 extern inline double point_dist_segment_square(POINT a, POINT b, POINT c,
                      ^
point.h:71:22: warning: inline function 'point_angle_between' declared but never defined
 extern inline double point_angle_between(POINT a, POINT b, POINT c);
                      ^
point.h:68:22: warning: inline function 'point_dist_square' declared but never defined
 extern inline double point_dist_square(POINT a, POINT b);
                      ^
point.h:65:22: warning: inline function 'point_dist' declared but never defined
 extern inline double point_dist(POINT a, POINT b);
                      ^
point.h:62:20: warning: inline function 'points_copy_last' declared but never defined
 extern inline void points_copy_last(struct line_pnts *Points, int pos);
                    ^
point.h:59:20: warning: inline function 'point_scalar' declared but never defined
 extern inline void point_scalar(POINT a, double k, POINT * res);
                    ^
point.h:51:20: warning: inline function 'point_assign' declared but never defined
 extern inline void point_assign(struct line_pnts *Points, int index,
                    ^
point.h:46:22: warning: inline function 'point_dist2' declared but never defined
 extern inline double point_dist2(POINT a);
                      ^
point.h:40:20: warning: inline function 'point_add' declared but never defined
 extern inline void point_add(POINT a, POINT b, POINT * res);
                    ^
point.h:37:20: warning: inline function 'point_subtract' declared but never defined
 extern inline void point_subtract(POINT a, POINT b, POINT * res);
make[3]: Entering directory '/c/msys64/usr/src/grass_trunk/raster3d/r3.retile'
test -d OBJ.x86_64-w64-mingw32 || mkdir -p OBJ.x86_64-w64-mingw32
gcc -I/c/OSGeo4W64/include -g -O2  -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"raster3d/r3.retile\" -o OBJ.x86_64-w64-mingw32/main.o -c main.c
main.c: In function 'main':
main.c:110:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     mapset = G_find_raster3d(param.input->answer, "");
In file included from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive_impl.h:47:0,
                 from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/ami.h:58,
                 from visibility.h:42,
                 from viewshed.h:42,
                 from viewshed.cpp:48:
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive.h: In constructor 'EMPQueueAdaptive<T, Key>::EMPQueueAdaptive(long int)':
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive.h:69:47: warning: delegating constructors only available with -std=c++11 or -std=gnu++11
   EMPQueueAdaptive(long N) : EMPQueueAdaptive() {};
                                               ^
viewshed.cpp: In function 'AEvent* allocate_eventlist(GridHeader*)':
viewshed.cpp:154:59: warning: left shift count >= width of type [-Wshift-count-overflow]
  long long maxsizet = ((long long)1 << (sizeof(size_t) * 8)) - 1;
                                                           ^
c++ -I/c/OSGeo4W64/include -g -O2 -I/c/OSGeo4W64/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include  -D_FILE_OFFSET_BITS=64 -DUSER=\"\" -Wno-sign-compare -DPACKAGE=\""grassmods"\"   -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -DRELDIR=\"raster/r.viewshed\" -o OBJ.x86_64-w64-mingw32/visibility.o -c visibility.cpp
In file included from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive_impl.h:47:0,
                 from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/ami.h:58,
                 from visibility.h:42,
                 from visibility.cpp:46:
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive.h: In constructor 'EMPQueueAdaptive<T, Key>::EMPQueueAdaptive(long int)':
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive.h:69:47: warning: delegating constructors only available with -std=c++11 or -std=gnu++11
   EMPQueueAdaptive(long N) : EMPQueueAdaptive() {};	
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive.h: In constructor 'EMPQueueAdaptive<T, Key>::EMPQueueAdaptive(long int)':
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/iostream/empq_adaptive.h:69:47: warning: delegating constructors only available with -std=c++11 or -std=gnu++11
   EMPQueueAdaptive(long N) : EMPQueueAdaptive() {};
                                               ^
main.cpp: In function 'void parse_args(int, char**, int*, int*, ViewOptions*, long long int*, Cell_head*)':
main.cpp:502:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     obsElevOpt->answer = "1.75";
                        ^
main.cpp:514:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     tgtElevOpt->answer = "0.0";
                        ^
main.cpp:557:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     refrCoeffOpt->answer = "0.14286";
                          ^
main.cpp:571:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     memAmountOpt->answer = "500";
Status: Preprocessing c:\users\landa\appdata\local\temp\tmpfva_ht.h
Status: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" c:/users/landa/appdata/local/temp/tmpfva_ht.h
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG: In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:275:0,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:9,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\include\grass\gis.h:24,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from c:/users/landa/appdata/local/temp/tmpfva_ht.h:1:

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG: C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error VARARGS not implemented for this compiler

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:  #error VARARGS not implemented for this compiler

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:   ^

Status: Parsing c:\users\landa\appdata\local\temp\tmpfva_ht.h
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:144: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:150: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:156: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:161: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:170: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:176: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:182: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:188: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:381: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:382: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:383: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:393: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:394: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:395: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:529: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:538: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:543: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:545: Syntax error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:567: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:577: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:581: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:585: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:592: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:594: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:598: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:602: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:729: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:730: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:731: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:757: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:758: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:787: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:789: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:799: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:804: Syntax error at 'argp'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:811: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:813: Syntax error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:821: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:835: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:27: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:36: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:37: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:39: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:42: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:45: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:57: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:58: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:59: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:61: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:64: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:65: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:68: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:69: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:72: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:73: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:76: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:77: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:79: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:81: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:83: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:85: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:88: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:89: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:107: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:108: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:110: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:116: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:124: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:126: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:128: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:130: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:145: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:146: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:148: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:150: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:153: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:154: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:157: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:158: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:161: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:162: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:165: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:167: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:169: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:170: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:63: Syntax error at '{'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:64: Syntax error at ':'
Error: C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/defs/gis.h:138: Syntax error at 'va_list'

Status: Preprocessing c:\users\landa\appdata\local\temp\tmplwqipi.h
Status: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" c:/users/landa/appdata/local/temp/tmplwqipi.h
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG: In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:275:0,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:9,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/gis.h:24,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from C:\msys64\usr\src\grass_trunk\dist.x86_64-w64-mingw32\include\grass\segment.h:4,

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:                  from c:/users/landa/appdata/local/temp/tmplwqipi.h:1:

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG: C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error VARARGS not implemented for this compiler

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:  #error VARARGS not implemented for this compiler

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64     -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -I/c/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG:   ^

Status: Parsing c:\users\landa\appdata\local\temp\tmplwqipi.h
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:144: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:150: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:156: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:161: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:170: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:176: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:182: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:188: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:381: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:382: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:383: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:393: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:394: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:395: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:529: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:538: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:543: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:545: Syntax error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:567: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:577: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:581: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:585: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:592: Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:594: Syntax error at 'va_list'

Attachments (1)

package.zip (198.2 KB ) - added by hellik 6 years ago.
zipped log file

Download all attachments as: .zip

Change History (10)

by hellik, 6 years ago

Attachment: package.zip added

zipped log file

in reply to:  description comment:1 by mmetz, 6 years ago

Replying to hellik:

looking into the package.log regarding warnings and errors during compilations in windows (zipped log file attached), there are some warnings and error (AFAIR I've seen them also in my debian 9):

There will be many more compiler warnings with different compiler flags, e.g. -Wall -Wextra -Wpedantic -Wshadow

As of trunk r71288, some of the warnings have been removed.

The errors in ctypes parsing C headers seem to be harmless, ctypes is apparently working anyway. Getting rid of these error messages would be a nice to have.

About the remaining compiler warnings:

There are various warnings like

warning: assignment discards 'const' qualifier from pointer target type

These are mostly harmless, it would be nice to get rid of them.

About iconv

MS Windows

parser_interface.c: In function 'print_escaped_for_xml':
parser_interface.c:67:20: warning: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types]
  ret = iconv(conv, (char **)&src, &srclen, &dst, &dstlen);
                    ^
In file included from parser_interface.c:32:0:
C:/OSGeo4W64/include/iconv.h:87:15: note: expected 'const char **' but argument is of type 'char **'
 #define iconv libiconv
               ^
C:/OSGeo4W64/include/iconv.h:89:37: note: in expansion of macro 'iconv'
 extern LIBICONV_DLL_EXPORTED size_t iconv (iconv_t cd,
                                            const char **inbuf, size_t *inbytesleft,
                                            char **outbuf, size_t *outbytesleft);

Linux

       size_t iconv(iconv_t cd,
                    char **inbuf, size_t *inbytesleft,
                    char **outbuf, size_t *outbytesleft);

We could add #ifdef __MINGW32__ clauses to avoid these warnings, but the both the standard C and the GNU libiconv version expect char **inbuf, not const char **inbuf, therefore I would leave it as it is.

put_row.c: In function 'write_null_bits_compressed':
put_row.c:509:29: warning: passing argument 1 of 'G_lz4_compress' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     nwrite = G_lz4_compress(flags, size, compressed_buf, size);
                             ^
In file included from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/gis.h:670:0,
                 from C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/raster.h:4,
                 from put_row.c:27:
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/defs/gis.h:208:1: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
 G_lz4_compress(unsigned char *src, int src_sz, unsigned char *dst,
 ^

G_compress() and all G_*_compress() functions would need to be changed to use const unsingned char *src, same for G_expand() and G_*_expand(). That would make sense but is a (probably harmless) API change. Considering that GRASS 7.2 is the first release to feature new compression methods, GRASS 7.2 could be regarded as a tech preview and minor changes in the API related to the new feature might be ok.

lib/driver/text3.c same iconv issue as for parser_interface.c

lib/cairodriver/text.c same iconv issue as for parser_interface.c

[...]/include/grass/iostream/empq_adaptive.h: In constructor 'EMPQueueAdaptive<T, Key>::EMPQueueAdaptive(long int)':
[...]/include/grass/iostream/empq_adaptive.h:69:47: warning: delegating constructors only available with -std=c++11 or -std=gnu++11
   EMPQueueAdaptive(long N) : EMPQueueAdaptive() {};
                                               ^

I guess the c++11 standard should not be a requirement. Any suggestions on how to avoid that?

comment:2 by neteler, 5 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:3 by neteler, 5 years ago

Milestone: 7.4.17.4.2

comment:4 by martinl, 4 years ago

What is the state of this ticket?

in reply to:  4 comment:5 by hellik, 4 years ago

Replying to martinl:

What is the state of this ticket?

warnings and errors still there

comment:6 by neteler, 4 years ago

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:7 by martinl, 4 years ago

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:8 by neteler, 4 years ago

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

comment:9 by nila, 2 years ago

See GitHub issue at https://github.com/OSGeo/grass/issues/1247 and related PRs.

Note: See TracTickets for help on using tickets.