Skip to content

Commit d937904

Browse files
committed
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.
1 parent b803b7d commit d937904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/file_utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ pg_pwritev_with_retry(int fd, const struct iovec *iov, int iovcnt, off_t offset)
540540
ssize_t
541541
pg_pwrite_zeros(int fd, size_t size, off_t offset)
542542
{
543-
const static PGAlignedBlock zbuffer = {0}; /* worth BLCKSZ */
543+
const static PGAlignedBlock zbuffer = {{0}}; /* worth BLCKSZ */
544544
void *zerobuf_addr = unconstify(PGAlignedBlock *, &zbuffer)->data;
545545
struct iovec iov[PG_IOV_MAX];
546546
size_t remaining_size = size;

0 commit comments

Comments
 (0)