mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 16:42:35 +00:00
Quiet LLVM warnings and remove old ignores from properties
git-svn-id: http://svn.osgeo.org/postgis/trunk@12448 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
77f7223491
commit
b55193f5c3
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue