Skip to content

Instantly share code, notes, and snippets.

@Komzpa
Created January 4, 2018 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Komzpa/01f7c3549c951267e09f197ab69d801f to your computer and use it in GitHub Desktop.
Save Komzpa/01f7c3549c951267e09f197ab69d801f to your computer and use it in GitHub Desktop.
/usr/bin/perl ../utils/create_undef.pl sfcgal.sql 96 > uninstall_sfcgal.sql
cat sfcgal_upgrade.sql.in postgis_drop_after.sql > sfcgal_upgrade.sql
cat postgis_drop_before.sql postgis_upgrade_for_extension.sql.in postgis_drop_after.sql > postgis_upgrade_for_extension.sql
echo "BEGIN;" > postgis_upgrade.sql
cat postgis_drop_before.sql postgis_upgrade.sql.in postgis_drop_after.sql >> postgis_upgrade.sql
echo "COMMIT;" >> postgis_upgrade.sql
gserialized_gist_nd.c: In function ‘gserialized_gist_compress’:
gserialized_gist_nd.c:148:11: error: array subscript is above array bounds [-Werror=array-bounds]
GIDX_SET_MAX(b,i,tmp);
^
cc1: all warnings being treated as errors
make[1]: *** [gserialized_gist_nd.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gserialized_estimate.c: In function ‘estimate_selectivity’:
gserialized_estimate.c:723:30: error: ‘nd_cell.max[3]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
double width2 = b2->max[d] - b2->min[d];
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.max[3]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:730:8: error: ‘nd_cell.max[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.max[2]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:730:8: error: ‘nd_cell.max[1]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.max[1]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:730:8: error: ‘nd_cell.max[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.max[0]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:723:30: error: ‘nd_cell.min[3]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
double width2 = b2->max[d] - b2->min[d];
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.min[3]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.min[2]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[1]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.min[1]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1993:10: note: ‘nd_cell.min[0]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c: In function ‘compute_gserialized_stats_mode’:
gserialized_estimate.c:730:8: error: ‘nd_cell.max[3]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.max[3]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:730:8: error: ‘nd_cell.max[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.max[2]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:730:8: error: ‘nd_cell.max[1]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.max[1]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:730:8: error: ‘nd_cell.max[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imax = Min(b1->max[d], b2->max[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.max[0]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[3]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.min[3]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.min[2]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[1]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.min[1]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:729:8: error: ‘nd_cell.min[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
imin = Max(b1->min[d], b2->min[d]);
^
gserialized_estimate.c:1735:11: note: ‘nd_cell.min[0]’ was declared here
ND_BOX nd_cell;
^
gserialized_estimate.c:1741:41: error: ‘cellsize[3]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1698:10: note: ‘cellsize[3]’ was declared here
double cellsize[ND_DIMS];
^
gserialized_estimate.c:1741:41: error: ‘cellsize[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1698:10: note: ‘cellsize[2]’ was declared here
double cellsize[ND_DIMS];
^
gserialized_estimate.c:1741:41: error: ‘cellsize[1]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1698:10: note: ‘cellsize[1]’ was declared here
double cellsize[ND_DIMS];
^
gserialized_estimate.c:1741:41: error: ‘cellsize[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1698:10: note: ‘cellsize[0]’ was declared here
double cellsize[ND_DIMS];
^
gserialized_estimate.c:1741:29: error: ‘min[3]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1696:10: note: ‘min[3]’ was declared here
double min[ND_DIMS];
^
gserialized_estimate.c:1741:29: error: ‘min[2]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1696:10: note: ‘min[2]’ was declared here
double min[ND_DIMS];
^
gserialized_estimate.c:1741:29: error: ‘min[1]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1696:10: note: ‘min[1]’ was declared here
double min[ND_DIMS];
^
gserialized_estimate.c:1741:29: error: ‘min[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
nd_cell.max[d] = min[d] + (at[d]+1) * cellsize[d];
^
gserialized_estimate.c:1696:10: note: ‘min[0]’ was declared here
double min[ND_DIMS];
^
cc1: all warnings being treated as errors
make[1]: *** [gserialized_estimate.o] Error 1
make[1]: Leaving directory `/home/travis/build/postgis/postgis/postgis'
make: *** [all] Error 1
The command "make -j" exited with 2.
0.01s$ chmod 755 /home/travis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment