projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b803b7d
)
Silence -Wmissing-braces complaints in file_utils.c
author
Michael Paquier
<michael@paquier.xyz>
Mon, 6 Mar 2023 22:42:36 +0000
(07:42 +0900)
committer
Michael 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
patch
|
blob
|
blame
|
history
diff --git
a/src/common/file_utils.c
b/src/common/file_utils.c
index f19ebfa28372c99b01234c80992dd379de10aa07..3c125d66e99e661305f15c608dea4679e9d7fe2f 100644
(file)
--- 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;