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

Commit506428d

Browse files
committed
Attempt to fix compiler warning on old compiler
A couple more likeb449afb, percomplaints from lapwing.
1 parentb449afb commit506428d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎contrib/pg_prewarm/autoprewarm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,12 @@ apw_detach_shmem(int code, Datum arg)
814814
staticvoid
815815
apw_start_leader_worker(void)
816816
{
817-
BackgroundWorkerworker= {0};
817+
BackgroundWorkerworker;
818818
BackgroundWorkerHandle*handle;
819819
BgwHandleStatusstatus;
820820
pid_tpid;
821821

822+
MemSet(&worker,0,sizeof(BackgroundWorker));
822823
worker.bgw_flags=BGWORKER_SHMEM_ACCESS;
823824
worker.bgw_start_time=BgWorkerStart_ConsistentState;
824825
strcpy(worker.bgw_library_name,"pg_prewarm");
@@ -855,9 +856,10 @@ apw_start_leader_worker(void)
855856
staticvoid
856857
apw_start_database_worker(void)
857858
{
858-
BackgroundWorkerworker= {0};
859+
BackgroundWorkerworker;
859860
BackgroundWorkerHandle*handle;
860861

862+
MemSet(&worker,0,sizeof(BackgroundWorker));
861863
worker.bgw_flags=
862864
BGWORKER_SHMEM_ACCESS |BGWORKER_BACKEND_DATABASE_CONNECTION;
863865
worker.bgw_start_time=BgWorkerStart_ConsistentState;

‎contrib/postgres_fdw/postgres_fdw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3307,7 +3307,7 @@ estimate_path_cost_size(PlannerInfo *root,
33073307
{
33083308
RelOptInfo*outerrel=fpinfo->outerrel;
33093309
PgFdwRelationInfo*ofpinfo;
3310-
AggClauseCostsaggcosts= {0};
3310+
AggClauseCostsaggcosts;
33113311
doubleinput_rows;
33123312
intnumGroupCols;
33133313
doublenumGroups=1;
@@ -3331,6 +3331,7 @@ estimate_path_cost_size(PlannerInfo *root,
33313331
input_rows=ofpinfo->rows;
33323332

33333333
/* Collect statistics about aggregates for estimating costs. */
3334+
MemSet(&aggcosts,0,sizeof(AggClauseCosts));
33343335
if (root->parse->hasAggs)
33353336
{
33363337
get_agg_clause_costs(root,AGGSPLIT_SIMPLE,&aggcosts);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp