From: Regina Obe Date: Sat, 23 Dec 2017 08:25:12 +0000 (+0000) Subject: Put assert_empty_diagram in a geos >=35 if def. It's only used for geos 3.5+. X-Git-Tag: 2.5.0alpha~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=093f7368dc42a021e48cdac66001520d554662a4;p=postgis Put assert_empty_diagram in a geos >=35 if def. It's only used for geos 3.5+. Change should quiet dronie git-svn-id: http://svn.osgeo.org/postgis/trunk@16182 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_triangulate.c b/liblwgeom/cunit/cu_triangulate.c index 449c6249b..ed633409b 100644 --- a/liblwgeom/cunit/cu_triangulate.c +++ b/liblwgeom/cunit/cu_triangulate.c @@ -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) {