[geos-commits] [SCM] GEOS branch master updated. 54cb7a43ae77f8ca137ec4039689fe6a62c79ae2

git at osgeo.org git at osgeo.org
Fri Nov 27 11:07:29 PST 2020


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, master has been updated
       via  54cb7a43ae77f8ca137ec4039689fe6a62c79ae2 (commit)
      from  0fc01f50865069e17557d45112c8c361db8e89b4 (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 54cb7a43ae77f8ca137ec4039689fe6a62c79ae2
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Nov 27 11:07:25 2020 -0800

    Quiet some longstanding MSVC warnings?

diff --git a/tests/unit/capi/GEOSSetSRIDTest.cpp b/tests/unit/capi/GEOSSetSRIDTest.cpp
index 7dce47d..fef53f7 100644
--- a/tests/unit/capi/GEOSSetSRIDTest.cpp
+++ b/tests/unit/capi/GEOSSetSRIDTest.cpp
@@ -21,10 +21,10 @@ template<>
 void object::test<1>
 ()
 {
+    int expected_srid = 1234;
     GEOSGeometry* input = GEOSGeomFromWKT("LINESTRING (1 2, 4 5, 9 -2)");
-    GEOSSetSRID(input, 1234);
-
-    ensure_equals(GEOSGetSRID(input), 1234);
+    GEOSSetSRID(input, expected_srid);
+    ensure_equals(GEOSGetSRID(input), expected_srid);
 
     GEOSGeom_destroy(input);
 }
diff --git a/tests/unit/operation/overlayng/ElevationModelTest.cpp b/tests/unit/operation/overlayng/ElevationModelTest.cpp
index 347f079..2cc4b76 100644
--- a/tests/unit/operation/overlayng/ElevationModelTest.cpp
+++ b/tests/unit/operation/overlayng/ElevationModelTest.cpp
@@ -46,8 +46,8 @@ struct test_overlayng_elevationmodel_data {
         std::unique_ptr<Geometry> g1 = r.read(wkt1);
         std::unique_ptr<Geometry> g2 = r.read(wkt2);
         std::unique_ptr<ElevationModel> model = ElevationModel::create(*g1, *g2);
-        unsigned int numPts = ords.size() / 3;
-        assert ( 3 * numPts == ords.size());
+        // unsigned int numPts = ords.size() / 3;
+        // assert ( 3 * numPts == ords.size());
         for ( std::initializer_list<double>::iterator i=ords.begin(), e=ords.end();
               i != e; ++i )
         {

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

Summary of changes:
 tests/unit/capi/GEOSSetSRIDTest.cpp                   | 6 +++---
 tests/unit/operation/overlayng/ElevationModelTest.cpp | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list