[postgis-tickets] r16322 - [travis] Enable -Wall
Darafei
komzpa at gmail.com
Tue Jan 16 09:03:43 PST 2018
Author: komzpa
Date: 2018-01-16 09:03:43 -0800 (Tue, 16 Jan 2018)
New Revision: 16322
Modified:
trunk/.travis.yml
trunk/postgis/gserialized_estimate.c
Log:
[travis] Enable -Wall
Closes https://github.com/postgis/postgis/pull/193
Modified: trunk/.travis.yml
===================================================================
--- trunk/.travis.yml 2018-01-16 14:47:33 UTC (rev 16321)
+++ trunk/.travis.yml 2018-01-16 17:03:43 UTC (rev 16322)
@@ -2,7 +2,7 @@
matrix:
- CFLAGS="-g -Og" MATRIX_EVAL="touch check-no-trailing-blanks"
- CFLAGS="-g -O2 -fstack-protector -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
- - CFLAGS="-g -O3 -mtune=generic -fno-omit-frame-pointer -Werror"
+ - CFLAGS="-g -O3 -mtune=generic -fno-omit-frame-pointer -Werror -Wall"
- CFLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage" CONFIGURE_FLAGS="--enable-debug"
addons:
Modified: trunk/postgis/gserialized_estimate.c
===================================================================
--- trunk/postgis/gserialized_estimate.c 2018-01-16 14:47:33 UTC (rev 16321)
+++ trunk/postgis/gserialized_estimate.c 2018-01-16 17:03:43 UTC (rev 16322)
@@ -1693,9 +1693,9 @@
int d;
double num_cells = 0;
double tmp_volume = 1.0;
- double min[ND_DIMS];
- double max[ND_DIMS];
- double cellsize[ND_DIMS];
+ double min[ND_DIMS] = {0.0, 0.0, 0.0, 0.0};
+ double max[ND_DIMS] = {0.0, 0.0, 0.0, 0.0};
+ double cellsize[ND_DIMS] = {0.0, 0.0, 0.0, 0.0};
nd_box = sample_boxes[i];
if ( ! nd_box ) continue; /* Skip Null'ed out hard deviants */
More information about the postgis-tickets
mailing list