Skip to content

Commit f554a95

Browse files
committed
Remove initialization from PendingBackendStats
9a8dd2c has added an initialization to PendingBackendStats, which has been causing compilation warnings in the buildfarm. This code does not strictly require it as PendingBackendStats is always initialized with memset(0), so let's remove it. Per report from multiple buildfarm members, like ayu and batfish, via Tom Lane. Author: Bertrand Drouvot <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent 72a3d04 commit f554a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/activity/pgstat_backend.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* reported within critical sections so we use static memory in order to avoid
3737
* memory allocation.
3838
*/
39-
static PgStat_BackendPending PendingBackendStats = {0};
39+
static PgStat_BackendPending PendingBackendStats;
4040

4141
/*
4242
* WAL usage counters saved from pgWalUsage at the previous call to

0 commit comments

Comments
 (0)