summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-08-27 15:59:22 +0000
committerTom Lane2009-08-27 15:59:22 +0000
commit5d27759c5e6ea11e0c765a3f89e377b29e8b3978 (patch)
tree07d470c61a2cfbe8f576084abd6dc9c9bcb8db5a
parentcd2504faf6234276412d87e67d3b0088e57d59e9 (diff)
Remove some unnecessary variable assignments, per results of "clang"
static checker. Paul Matthews
-rw-r--r--src/backend/utils/adt/geo_ops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/geo_ops.c b/src/backend/utils/adt/geo_ops.c
index 7da8039bcb..16e2b7fadb 100644
--- a/src/backend/utils/adt/geo_ops.c
+++ b/src/backend/utils/adt/geo_ops.c
@@ -2939,7 +2939,7 @@ close_lseg(PG_FUNCTION_ARGS)
memcpy(&point, &l1->p[1], sizeof(Point));
}
- if ((d = dist_ps_internal(&l2->p[0], l1)) < dist)
+ if (dist_ps_internal(&l2->p[0], l1) < dist)
{
result = DatumGetPointP(DirectFunctionCall2(close_ps,
PointPGetDatum(&l2->p[0]),
@@ -2950,7 +2950,7 @@ close_lseg(PG_FUNCTION_ARGS)
LsegPGetDatum(l2)));
}
- if ((d = dist_ps_internal(&l2->p[1], l1)) < dist)
+ if (dist_ps_internal(&l2->p[1], l1) < dist)
{
result = DatumGetPointP(DirectFunctionCall2(close_ps,
PointPGetDatum(&l2->p[1]),
@@ -2990,7 +2990,7 @@ close_pb(PG_FUNCTION_ARGS)
point.x = box->low.x;
point.y = box->high.y;
statlseg_construct(&lseg, &box->low, &point);
- dist = d = dist_ps_internal(pt, &lseg);
+ dist = dist_ps_internal(pt, &lseg);
statlseg_construct(&seg, &box->high, &point);
if ((d = dist_ps_internal(pt, &seg)) < dist)