[geos-commits] [SCM] GEOS branch main updated. 7ce71942d882ca8ed301181d03d4b31177c340d0

git at osgeo.org git at osgeo.org
Mon May 4 05:43:29 PDT 2026


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 "GEOS".

The branch, main has been updated
       via  7ce71942d882ca8ed301181d03d4b31177c340d0 (commit)
       via  b06377c2680f9ab4cef6f9d4bcaf0301e9e1bf59 (commit)
      from  5ae8f7c6499b41e650e389a1c9eb2a81025b252c (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 7ce71942d882ca8ed301181d03d4b31177c340d0
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri May 1 16:41:22 2026 -0400

    DistanceToPoint: Set dllexport

diff --git a/include/geos/algorithm/distance/DistanceToPoint.h b/include/geos/algorithm/distance/DistanceToPoint.h
index 108b85506..10f280ade 100644
--- a/include/geos/algorithm/distance/DistanceToPoint.h
+++ b/include/geos/algorithm/distance/DistanceToPoint.h
@@ -18,6 +18,7 @@
 
 #pragma once
 
+#include <geos/export.h>
 #include <geos/geom/LineSegment.h> // for composition
 
 namespace geos {
@@ -43,7 +44,7 @@ namespace distance { // geos::algorithm::distance
  *
  * Also computes two points which are separated by the distance.
  */
-class DistanceToPoint {
+class GEOS_DLL DistanceToPoint {
 public:
 
     DistanceToPoint() {}

commit b06377c2680f9ab4cef6f9d4bcaf0301e9e1bf59
Author: Daniel Baston <dbaston at gmail.com>
Date:   Fri May 1 16:32:44 2026 -0400

    Avoid -Warray-bounds warning on gcc 16

diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index 5568b7731..a1be8e65b 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -1885,6 +1885,10 @@ extern "C" {
     GEOSGridIntersectionFractions_r(GEOSContextHandle_t extHandle, const Geometry* g, double xmin, double ymin,
                                     double xmax, double ymax, unsigned nx, unsigned ny, float* buf)
     {
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
         return execute(extHandle, 0, [&]() {
             Envelope env(xmin, xmax, ymin, ymax);
             double dx = env.getWidth() / static_cast<double>(nx);
@@ -1900,6 +1904,9 @@ extern "C" {
 
             return 1;
         });
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
     }
 
     Geometry*

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

Summary of changes:
 capi/geos_ts_c.cpp                                | 7 +++++++
 include/geos/algorithm/distance/DistanceToPoint.h | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list