diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-03-07 07:42:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-03-07 07:42:36 +0900 |
commit | d937904cce6a3d82e4f9c2127de7b59105a134b3 (patch) | |
tree | 3a25564fb7c79eb2dfd1b3aac504ae607a364163 /src/common/file_utils.c | |
parent | b803b7d132e3505ab77c29acf91f3d1caa298f95 (diff) | |
download | postgresql-d937904cce6a3d82e4f9c2127de7b59105a134b3.tar.gz postgresql-d937904cce6a3d82e4f9c2127de7b59105a134b3.zip |
Silence -Wmissing-braces complaints in file_utils.c
Per buildfarm member lapwing, coupled with an offline poke from Julien
Rouhaud.
6392f2a was a similar case.
Diffstat (limited to 'src/common/file_utils.c')
-rw-r--r-- | src/common/file_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_utils.c b/src/common/file_utils.c index f19ebfa2837..3c125d66e99 100644 --- a/src/common/file_utils.c +++ b/src/common/file_utils.c @@ -540,7 +540,7 @@ pg_pwritev_with_retry(int fd, const struct iovec *iov, int iovcnt, off_t offset) ssize_t pg_pwrite_zeros(int fd, size_t size, off_t offset) { - const static PGAlignedBlock zbuffer = {0}; /* worth BLCKSZ */ + const static PGAlignedBlock zbuffer = {{0}}; /* worth BLCKSZ */ void *zerobuf_addr = unconstify(PGAlignedBlock *, &zbuffer)->data; struct iovec iov[PG_IOV_MAX]; size_t remaining_size = size; |