[geos-commits] [SCM] GEOS branch main updated. dd26e4a6d97cd6dd1857736465270ac27ccaf875

git at osgeo.org git at osgeo.org
Wed Sep 8 14:36:33 PDT 2021


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  dd26e4a6d97cd6dd1857736465270ac27ccaf875 (commit)
      from  3c7205e09413f62e1c940052c2cf376bfb36f080 (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 dd26e4a6d97cd6dd1857736465270ac27ccaf875
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Sep 8 14:36:27 2021 -0700

    Fix build error

diff --git a/tests/unit/capi/GEOSGeom_createPolygonTest.cpp b/tests/unit/capi/GEOSGeom_createPolygonTest.cpp
index 79f426d..22cc6b7 100644
--- a/tests/unit/capi/GEOSGeom_createPolygonTest.cpp
+++ b/tests/unit/capi/GEOSGeom_createPolygonTest.cpp
@@ -82,14 +82,13 @@ void object::test<3>
 {
     GEOSGeometry* shell = nullptr;
     GEOSGeometry** holes = nullptr;
-    unsigned int nholes = 0;
 
     // Returns null on exception, wrong input type for shell
     GEOSGeometry* polygon = GEOSGeom_createPolygon(shell, holes, 0);
     ensure(polygon == nullptr);
 
     // Returns null on exception, wrong input type for shell
-    GEOSGeometry* polygon = GEOSGeom_createPolygon(shell, holes, 1);
+    polygon = GEOSGeom_createPolygon(shell, holes, 1);
     ensure(polygon == nullptr);
 
     // Shouldn't need this

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

Summary of changes:
 tests/unit/capi/GEOSGeom_createPolygonTest.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list