]> granicus.if.org Git - postgis/commitdiff
Put assert_empty_diagram in a geos >=35 if def. It's only used for geos 3.5+.
authorRegina Obe <lr@pcorp.us>
Sat, 23 Dec 2017 08:25:12 +0000 (08:25 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 23 Dec 2017 08:25:12 +0000 (08:25 +0000)
Change should quiet dronie

git-svn-id: http://svn.osgeo.org/postgis/trunk@16182 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_triangulate.c

index 449c6249b4deb93d1d6049fde77e597c358cb05b..ed633409bd6fcaa0e786652343ec5620392c9fc7 100644 (file)
@@ -83,6 +83,7 @@ static void test_lwgeom_voronoi_diagram_custom_envelope(void)
 #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 @@ static void assert_empty_diagram(char* wkt, double tolerance)
        lwgeom_free(in);
        lwgeom_free(out);
 }
+#endif /* POSTGIS_GEOS_VERSION >= 35 */
 
 static void test_lwgeom_voronoi_diagram_expected_empty(void)
 {