Silence -Wmissing-braces complaints in file_utils.c
authorMichael Paquier <michael@paquier.xyz>
Mon, 6 Mar 2023 22:42:36 +0000 (07:42 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 6 Mar 2023 22:42:36 +0000 (07:42 +0900)
Per buildfarm member lapwing, coupled with an offline poke from Julien
Rouhaud.

6392f2a was a similar case.

src/common/file_utils.c

index f19ebfa28372c99b01234c80992dd379de10aa07..3c125d66e99e661305f15c608dea4679e9d7fe2f 100644 (file)
@@ -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;