[postgis-tickets] r16182 - Put assert_empty_diagram in a geos >=35 if def. It's only used for geos 3.5+.

Regina Obe lr at pcorp.us
Sat Dec 23 12:25:12 PST 2017


Author: robe
Date: 2017-12-23 00:25:12 -0800 (Sat, 23 Dec 2017)
New Revision: 16182

Modified:
   trunk/liblwgeom/cunit/cu_triangulate.c
Log:
Put assert_empty_diagram in a geos >=35 if def.  It's only used for geos 3.5+. 
Change should quiet dronie

Modified: trunk/liblwgeom/cunit/cu_triangulate.c
===================================================================
--- trunk/liblwgeom/cunit/cu_triangulate.c	2017-12-23 07:53:16 UTC (rev 16181)
+++ trunk/liblwgeom/cunit/cu_triangulate.c	2017-12-23 08:25:12 UTC (rev 16182)
@@ -83,6 +83,7 @@
 #endif /* POSTGIS_GEOS_VERSION >= 35 */
 }
 
+#if POSTGIS_GEOS_VERSION >= 35
 static void assert_empty_diagram(char* wkt, double tolerance)
 {
 	LWGEOM* in = lwgeom_from_wkt(wkt, LW_PARSER_CHECK_NONE);
@@ -94,6 +95,7 @@
 	lwgeom_free(in);
 	lwgeom_free(out);
 }
+#endif /* POSTGIS_GEOS_VERSION >= 35 */
 
 static void test_lwgeom_voronoi_diagram_expected_empty(void)
 {



More information about the postgis-tickets mailing list