Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b449afb

Browse files
committed
Attempt to fix compiler warning on old compiler
Build farm member lapwing (using gcc 4.7.2) didn't like one part of 9fd4587, raising a compiler warning. Revert that for now.
1 parent 9fd4587 commit b449afb

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
double output_tuples;
29272927
Cost startup_cost;
29282928
Cost total_cost;
2929-
const AggClauseCosts dummy_aggcosts = {0};
2929+
AggClauseCosts dummy_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)