]> granicus.if.org Git - postgis/commitdiff
Remove some compile warnings.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 31 Jan 2012 20:46:18 +0000 (20:46 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 31 Jan 2012 20:46:18 +0000 (20:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8984 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c
loader/pgsql2shp-cli.c
loader/pgsql2shp-core.h
loader/shp2pgsql-cli.c
loader/shp2pgsql-core.h
loader/shp2pgsql-gui.c

index 0db9d4893ebb54bc4516da69397c5fc735da4b10..93e4557787feffb049aa2203288f75ec99923fdd 100644 (file)
@@ -2660,14 +2660,18 @@ double lwgeom_length_spheroid(const LWGEOM *geom, const SPHEROID *s)
 * those points, back over to the bounds.
 * http://trac.osgeo.org/postgis/ticket/1292
 */
-int ptarray_nudge_geodetic(POINTARRAY *pa)
+static int 
+ptarray_nudge_geodetic(POINTARRAY *pa)
 {
        int i;
        POINT4D p;
        int altered = LW_FALSE;
        int rv = LW_FALSE;
        static double tolerance = 1e-10;
-       if ( ! pa ) return;
+
+       if ( ! pa )
+               lwerror("ptarray_nudge_geodetic called with null input");
+
        for(i = 0; i < pa->npoints; i++ )
        {
                getPoint4d_p(pa, i, &p);
@@ -2707,7 +2711,8 @@ int ptarray_nudge_geodetic(POINTARRAY *pa)
 * those points, back over to the bounds.
 * http://trac.osgeo.org/postgis/ticket/1292
 */
-int lwgeom_nudge_geodetic(LWGEOM *geom)
+int 
+lwgeom_nudge_geodetic(LWGEOM *geom)
 {
        int type;
        int i = 0;
@@ -2746,7 +2751,7 @@ int lwgeom_nudge_geodetic(LWGEOM *geom)
 
                for ( i = 0; i < col->ngeoms; i++ )
                {
-                       rv = (rv == LW_TRUE ? rv : ptarray_nudge_geodetic(col->geoms[i]));
+                       rv = (rv == LW_TRUE ? rv : lwgeom_nudge_geodetic(col->geoms[i]));
                }
                return rv;
        }
index f14e10c76f057021a5d4f80c71e360cabc1bd0cb..2eb439a7aab1d3c7bd5baa2abc4501b0c55449f4 100644 (file)
@@ -24,7 +24,7 @@
 static void
 usage()
 {
-       printf(_("RELEASE: %s (%s)\n"), POSTGIS_VERSION, RCSID );
+       printf(_("RELEASE: %s (%s)\n"), POSTGIS_VERSION, P2S_RCSID );
        printf(_("USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>\n"
                 "       pgsql2shp [<options>] <database> <query>\n"
                 "\n"
index bd4f7cef16d14ea0218d8817402e915e980ce3a5..a5453384df861726ab66326b37fd8c6cce5e9f6f 100644 (file)
@@ -29,7 +29,7 @@
 #include "shpcommon.h"
 #include "getopt.h"
 
-#define RCSID "$Id$"
+#define P2S_RCSID "$Id$"
 
 
 /*
index f65b13dbbf965dd0e0eb35593f87a8450a63189c..987288e3d08cfaa4bab0c10b7404cf89bb3324df 100644 (file)
@@ -21,7 +21,7 @@
 static void
 usage()
 {
-       printf(_( "RELEASE: %s (r%s)\n" ), POSTGIS_VERSION, RCSID);
+       printf(_( "RELEASE: %s (r%s)\n" ), POSTGIS_VERSION, S2P_RCSID);
        printf(_( "USAGE: shp2pgsql [<options>] <shapefile> [[<schema>.]<table>]\n"
                  "OPTIONS:\n" ));
        printf(_( "  -s [<from>:]<srid> Set the SRID field. Defaults to %d.\n"
index 8e7dce50aaf8c2a46e6975be617668fb85ce6e57..e0d18fbab9cccc8c01f6d7eef31f5d2ccbd06a9f 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "../liblwgeom/stringbuffer.h"
 
-#define RCSID "$Id$"
+#define S2P_RCSID "$Id$"
 
 
 /* Number of digits of precision in WKT produced. */
index 080c8e586105a00e9f08f2874636ceee6ff2bbde..07e94a1eba910729c4ec1fed386f14adb46093f9 100644 (file)
@@ -2267,7 +2267,7 @@ pgui_create_main_window(const SHPCONNECTIONCONFIG *conn)
 static void
 usage()
 {
-       printf("RCSID: %s RELEASE: %s\n", RCSID, POSTGIS_VERSION);
+       printf("RCSID: %s RELEASE: %s\n", S2P_RCSID, POSTGIS_VERSION);
        printf("USAGE: shp2pgsql-gui [options]\n");
        printf("OPTIONS:\n");
        printf("  -U <username>\n");