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

Commit6a6cd27

Browse files
peterepull[bot]
authored andcommitted
Attempt to fix compiler warning on old compiler
Build farm member lapwing (using gcc 4.7.2) didn't like one part of9fd4587, raising a compiler warning.Revert that for now.
1 parent45ee9a7 commit6a6cd27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/optimizer/path/costsize.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,12 +2926,13 @@ cost_agg(Path *path, PlannerInfo *root,
29262926
doubleoutput_tuples;
29272927
Coststartup_cost;
29282928
Costtotal_cost;
2929-
constAggClauseCostsdummy_aggcosts= {0};
2929+
AggClauseCostsdummy_aggcosts;
29302930

29312931
/* Use all-zero per-aggregate costs if NULL is passed */
29322932
if (aggcosts==NULL)
29332933
{
29342934
Assert(aggstrategy==AGG_HASHED);
2935+
MemSet(&dummy_aggcosts,0,sizeof(AggClauseCosts));
29352936
aggcosts=&dummy_aggcosts;
29362937
}
29372938

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp