From: Paul Ramsey Date: Mon, 30 Jun 2014 17:55:46 +0000 (+0000) Subject: fix build X-Git-Tag: 2.2.0rc1~1030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0db98e8f291f1532a4f48bd8d8330b90868092fe;p=postgis fix build git-svn-id: http://svn.osgeo.org/postgis/trunk@12710 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_surface.c b/liblwgeom/cunit/cu_surface.c index ee55bfc1d..9a0462c2b 100644 --- a/liblwgeom/cunit/cu_surface.c +++ b/liblwgeom/cunit/cu_surface.c @@ -240,7 +240,6 @@ void polyhedralsurface_parse(void) LWGEOM *geom; GSERIALIZED *g; char *tmp; - unsigned char *utmp; cu_error_msg_reset(); /* Because i don't trust that much prior tests... ;) */ @@ -314,9 +313,9 @@ void polyhedralsurface_parse(void) geom = lwgeom_from_wkt("POLYHEDRALSURFACE EMPTY", LW_PARSER_CHECK_NONE); CU_ASSERT_EQUAL(strlen(cu_error_msg), 0); CU_ASSERT_EQUAL(geom->type, POLYHEDRALSURFACETYPE); - utmp = lwgeom_to_wkb(geom, WKB_HEX | WKB_ISO | WKB_NDR, 0); - CU_ASSERT_STRING_EQUAL("010F00000000000000", tmp); - lwfree(utmp); + tmp = lwgeom_to_wkb(geom, WKB_HEX | WKB_ISO | WKB_NDR, 0); + CU_ASSERT_STRING_EQUAL("010F00000000000000", (char*)tmp); + lwfree(tmp); tmp = lwgeom_to_ewkt(geom); CU_ASSERT_STRING_EQUAL("POLYHEDRALSURFACE EMPTY", tmp); lwfree(tmp);