Skip to content

Commit aaa9f7d

Browse files
committed
Remove some unnecessary variable assignments, per results of "clang"
static checker. Paul Matthews
1 parent 9cd6685 commit aaa9f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/adt/geo_ops.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.103 2009/07/28 09:47:59 teodor Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/geo_ops.c,v 1.104 2009/08/27 15:59:22 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2939,7 +2939,7 @@ close_lseg(PG_FUNCTION_ARGS)
29392939
memcpy(&point, &l1->p[1], sizeof(Point));
29402940
}
29412941

2942-
if ((d = dist_ps_internal(&l2->p[0], l1)) < dist)
2942+
if (dist_ps_internal(&l2->p[0], l1) < dist)
29432943
{
29442944
result = DatumGetPointP(DirectFunctionCall2(close_ps,
29452945
PointPGetDatum(&l2->p[0]),
@@ -2950,7 +2950,7 @@ close_lseg(PG_FUNCTION_ARGS)
29502950
LsegPGetDatum(l2)));
29512951
}
29522952

2953-
if ((d = dist_ps_internal(&l2->p[1], l1)) < dist)
2953+
if (dist_ps_internal(&l2->p[1], l1) < dist)
29542954
{
29552955
result = DatumGetPointP(DirectFunctionCall2(close_ps,
29562956
PointPGetDatum(&l2->p[1]),
@@ -2990,7 +2990,7 @@ close_pb(PG_FUNCTION_ARGS)
29902990
point.x = box->low.x;
29912991
point.y = box->high.y;
29922992
statlseg_construct(&lseg, &box->low, &point);
2993-
dist = d = dist_ps_internal(pt, &lseg);
2993+
dist = dist_ps_internal(pt, &lseg);
29942994

29952995
statlseg_construct(&seg, &box->high, &point);
29962996
if ((d = dist_ps_internal(pt, &seg)) < dist)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy