mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 00:52:40 +00:00
Quiet warnings about using fabs on ints
git-svn-id: http://svn.osgeo.org/postgis/trunk@13494 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
17c3f1f085
commit
4186526ccd
|
@ -634,7 +634,7 @@ diff_rastinfo(RASTERINFO *x, RASTERINFO *ref) {
|
||||||
if (!msg[3]) {
|
if (!msg[3]) {
|
||||||
for (i = 0; i < ref->nband_count; i++) {
|
for (i = 0; i < ref->nband_count; i++) {
|
||||||
if (!x->hasnodata[i] && !ref->hasnodata[i]) continue;
|
if (!x->hasnodata[i] && !ref->hasnodata[i]) continue;
|
||||||
if (FLT_NEQ(x->hasnodata[i], ref->hasnodata[i])) {
|
if (x->hasnodata[i] != ref->hasnodata[i]) {
|
||||||
rtwarn(_("Different NODATA values found for band %d in the set of rasters being converted to PostGIS raster"), ref->nband[i]);
|
rtwarn(_("Different NODATA values found for band %d in the set of rasters being converted to PostGIS raster"), ref->nband[i]);
|
||||||
msg[3]++;
|
msg[3]++;
|
||||||
}
|
}
|
||||||
|
@ -678,7 +678,7 @@ diff_rastinfo(RASTERINFO *x, RASTERINFO *ref) {
|
||||||
/* tile size */
|
/* tile size */
|
||||||
if (!msg[5]) {
|
if (!msg[5]) {
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
if (FLT_NEQ(x->tile_size[i], ref->tile_size[i])) {
|
if (x->tile_size[i] != ref->tile_size[i]) {
|
||||||
rtwarn(_("Different tile sizes found in the set of rasters being converted to PostGIS raster"));
|
rtwarn(_("Different tile sizes found in the set of rasters being converted to PostGIS raster"));
|
||||||
msg[5]++;
|
msg[5]++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue