[SCM] PostGIS branch stable-3.2 updated. 3.2.6-15-gfba51938d

git at osgeo.org git at osgeo.org
Mon Jan 8 16:17:26 PST 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-3.2 has been updated
       via  fba51938dfccd836e05ad8e2566218d145b60a4a (commit)
      from  39dff31941e61d3b80e0c9dc1811a70e0084b102 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fba51938dfccd836e05ad8e2566218d145b60a4a
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jan 8 16:17:18 2024 -0800

    Quiet modern clang whining

diff --git a/liblwgeom/lwgeom_topo.c b/liblwgeom/lwgeom_topo.c
index 65a5a90ba..45568da73 100644
--- a/liblwgeom/lwgeom_topo.c
+++ b/liblwgeom/lwgeom_topo.c
@@ -5753,7 +5753,7 @@ _lwt_AddLine(LWT_TOPOLOGY* topo, LWLINE* line, double tol, int* nedges,
         continue;
       }
       nearby[nearbyindex++] = g;
-      ++nn;
+      nn = nn + 1;
     }
     LWDEBUGF(1, "Found %d isolated nodes closer than tolerance (%g)", nn, tol);
   }}
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index ae6eb5122..e0daa240c 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -745,15 +745,15 @@ nd_box_ratio(const ND_BOX *b1, const ND_BOX *b2, int ndims)
 		double width2 = b2->max[d] - b2->min[d];
 		double imin, imax, iwidth;
 
-		vol1 *= width1;
-		vol2 *= width2;
+		vol1 = vol1 * width1;
+		vol2 = vol2 * width2;
 
 		imin = Max(b1->min[d], b2->min[d]);
 		imax = Min(b1->max[d], b2->max[d]);
 		iwidth = imax - imin;
 		iwidth = Max(0.0, iwidth);
 
-		ivol *= iwidth;
+		ivol = ivol * iwidth;
 	}
 
 	if ( vol2 == 0.0 )
@@ -1767,7 +1767,7 @@ compute_gserialized_stats_mode(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfu
 		}
 
 		/* Add feature volume (area) to our total */
-		total_sample_volume += tmp_volume;
+		total_sample_volume = total_sample_volume + tmp_volume;
 
 		/*
 		 * Move through all the overlaped histogram cells values and

-----------------------------------------------------------------------

Summary of changes:
 liblwgeom/lwgeom_topo.c        | 2 +-
 postgis/gserialized_estimate.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list