From: Sandro Santilli Date: Wed, 6 Jul 2011 07:42:24 +0000 (+0000) Subject: Fix compiler warnings (#999) X-Git-Tag: 2.0.0alpha1~1239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c7f76cb8f0b9ac2921ce640cdd8616fae1728eb;p=postgis Fix compiler warnings (#999) git-svn-id: http://svn.osgeo.org/postgis/trunk@7603 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwout_x3d.c b/liblwgeom/lwout_x3d.c index ed9c37def..5c764deef 100644 --- a/liblwgeom/lwout_x3d.c +++ b/liblwgeom/lwout_x3d.c @@ -197,7 +197,6 @@ asx3d3_mline_coordindex(const LWMLINE *mgeom, char *output) POINTARRAY *pa; int np; - ptr += sprintf(ptr, ""); j = 0; for (i=0; i < mgeom->ngeoms; i++) { @@ -434,18 +433,18 @@ asx3d3_multi_buf(const LWCOLLECTION *col, char *srs, char *output, int precision case MULTILINETYPE: x3dtype = "IndexedLineSet"; ptr += sprintf(ptr, "<%s %s coordIndex='", x3dtype, defid); - ptr += asx3d3_mline_coordindex(col, ptr); + ptr += asx3d3_mline_coordindex((const LWMLINE *)col, ptr); ptr += sprintf(ptr, "'>"); break; case MULTIPOLYGONTYPE: x3dtype = "IndexedFaceSet"; ptr += sprintf(ptr, "<%s %s coordIndex='", x3dtype, defid); - ptr += asx3d3_mpoly_coordindex(col,ptr); + ptr += asx3d3_mpoly_coordindex((const LWMPOLY *)col, ptr); ptr += sprintf(ptr, "'>"); break; default: lwerror("asx3d3_multi_buf: '%s' geometry type not supported", lwtype_name(col->type)); - return NULL; + return 0; } if (dimension == 3){ ptr += sprintf(ptr, "