Content-Length: 269378 | pFad | https://github.com/postgrespro/postgres/commit/b449afb582bb9015bfbb85abc10ce122aef9ec70

1D Attempt to fix compiler warning on old compiler · postgrespro/postgres@b449afb · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/b449afb582bb9015bfbb85abc10ce122aef9ec70

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy