]> granicus.if.org Git - postgis/commitdiff
Fix compiler warnings (#999)
authorSandro Santilli <strk@keybit.net>
Wed, 6 Jul 2011 07:42:24 +0000 (07:42 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 6 Jul 2011 07:42:24 +0000 (07:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7603 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwout_x3d.c

index ed9c37def49e2e187ce7533cdc78f8818a09c73c..5c764deefb0640d2827ff4870bc35eeb2f84e4c7 100644 (file)
@@ -197,7 +197,6 @@ asx3d3_mline_coordindex(const LWMLINE *mgeom, char *output)
        POINTARRAY *pa;\r
        int np;\r
 \r
-       ptr += sprintf(ptr, "");\r
        j = 0;\r
        for (i=0; i < mgeom->ngeoms; i++)\r
        {\r
@@ -434,18 +433,18 @@ asx3d3_multi_buf(const LWCOLLECTION *col, char *srs, char *output, int precision
         case MULTILINETYPE:\r
             x3dtype = "IndexedLineSet";\r
             ptr += sprintf(ptr, "<%s %s coordIndex='", x3dtype, defid);\r
-            ptr += asx3d3_mline_coordindex(col, ptr);\r
+            ptr += asx3d3_mline_coordindex((const LWMLINE *)col, ptr);\r
             ptr += sprintf(ptr, "'>");\r
             break;\r
         case MULTIPOLYGONTYPE:\r
             x3dtype = "IndexedFaceSet";\r
             ptr += sprintf(ptr, "<%s %s coordIndex='", x3dtype, defid);\r
-            ptr += asx3d3_mpoly_coordindex(col,ptr);\r
+            ptr += asx3d3_mpoly_coordindex((const LWMPOLY *)col, ptr);\r
             ptr += sprintf(ptr, "'>");\r
             break;\r
         default:\r
             lwerror("asx3d3_multi_buf: '%s' geometry type not supported", lwtype_name(col->type));\r
-            return NULL;\r
+            return 0;\r
     }\r
     if (dimension == 3){\r
         ptr += sprintf(ptr, "<Coordinate point='");\r