aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-03-12 20:37:43 +0900
committerMichael Paquier <michael@paquier.xyz>2025-03-12 20:37:43 +0900
commitf554a95379a9adef233d21b1e1e8981a8f5f8de3 (patch)
treea8a594dec969d7b10e113d0fe1c0c9188a26b979
parent72a3d0462b9a7f6265267950668af0c0246e7c01 (diff)
downloadpostgresql-f554a95379a9adef233d21b1e1e8981a8f5f8de3.tar.gz
postgresql-f554a95379a9adef233d21b1e1e8981a8f5f8de3.zip
Remove initialization from PendingBackendStats
9a8dd2c5a6d 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 <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/1870853.1741749264@sss.pgh.pa.us
-rw-r--r--src/backend/utils/activity/pgstat_backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/activity/pgstat_backend.c b/src/backend/utils/activity/pgstat_backend.c
index da4c7edd772..a8cb54a7732 100644
--- a/src/backend/utils/activity/pgstat_backend.c
+++ b/src/backend/utils/activity/pgstat_backend.c
@@ -36,7 +36,7 @@
* reported within critical sections so we use static memory in order to avoid
* memory allocation.
*/
-static PgStat_BackendPending PendingBackendStats = {0};
+static PgStat_BackendPending PendingBackendStats;
/*
* WAL usage counters saved from pgWalUsage at the previous call to