]> granicus.if.org Git - postgis/commitdiff
Quiet LLVM warnings and remove old ignores from properties
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 9 Apr 2014 20:10:13 +0000 (20:10 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 9 Apr 2014 20:10:13 +0000 (20:10 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12448 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c
liblwgeom/lwout_twkb.c
loader/pgsql2shp-core.c
postgis/lwgeom_sqlmm.c

index 93cce9ab055b0db5c7f085e02f5ecd1e388e18d2..84cc3f4b794842745f391bfb47d75b290ae88b5c 100644 (file)
@@ -443,10 +443,12 @@ static void vector_scale(POINT3D *n, double scale)
        return;
 }
 
-static inline double vector_magnitude(const POINT3D* v)
-{
-       return sqrt(v->x*v->x + v->y*v->y + v->z*v->z);
-}
+/*
+* static inline double vector_magnitude(const POINT3D* v)
+* {
+*      return sqrt(v->x*v->x + v->y*v->y + v->z*v->z);
+* }
+*/
 
 /**
 * Angle between two unit vectors
index 484576bb6249aa7c7eb6664c0d6dcfa97e319f2a..8593d280c45d542d81f68477873fd9b6814d5878 100644 (file)
@@ -130,7 +130,7 @@ int u_getvarint_size(uint64_t val)
 {
        LWDEBUGF(2, "Entered  u_getvarint_size",0);
        
-       if(val<0||val>max_varint)
+       if(val>max_varint)
                lwerror("Value is out of range for unsigned varint (0 to %ld)", max_varint);
        uint64_t q;
        int n=0;
index 807d9d1f3dbb930e269ad181a7374d35ada35838..6ec71887f0603e2e231f03d17b824df97202f558 100644 (file)
@@ -1207,7 +1207,7 @@ read_column_map(SHPDUMPERSTATE *state)
                state->column_map_pgfieldnames[curmapsize][fieldnamesize] = '\0';
                
                /* Now swallow up any whitespace */
-               for (tmpstr = tmpptr; *tmpptr == '\t' || *tmpptr == '\n' || *tmpptr == ' '; tmpptr++);
+               for (tmpstr = tmpptr; *tmpptr == '\t' || *tmpptr == '\n' || *tmpptr == ' '; tmpptr++) {}
 
                /* Finally locate end of second column (dbffieldname) */
                for (tmpstr = tmpptr; *tmpptr != '\t' && *tmpptr != '\n' && *tmpptr != ' ' && *tmpptr != '\0'; tmpptr++);               
index abb5e68cb4ac9defe1205b8793ae0107cf219025..62b882d47c05026aaa001fd954c086350a0ddc1d 100644 (file)
@@ -54,7 +54,7 @@ PG_FUNCTION_INFO_V1(LWGEOM_curve_segmentize);
 Datum LWGEOM_curve_segmentize(PG_FUNCTION_ARGS)
 {
        GSERIALIZED *geom = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
-       uint32 perQuad = PG_GETARG_INT32(1);
+       int32 perQuad = PG_GETARG_INT32(1);
        GSERIALIZED *ret;
        LWGEOM *igeom = NULL, *ogeom = NULL;