Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaaa9f7d

Browse files
committed
Remove some unnecessary variable assignments, per results of "clang"
static checker. Paul Matthews
1 parent9cd6685 commitaaa9f7d

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)

[8]ページ先頭

©2009-2025 Movatter.jp