aboutsummaryrefslogtreecommitdiff
path: root/src/common/file_utils.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2023-03-16 09:41:13 -0700
committerAndres Freund <andres@anarazel.de>2023-03-16 09:41:13 -0700
commit2b7259f855723f36d2ce81ad892583248dc1576f (patch)
tree5a859aa7be4303fb241c2432ef171b14494939f9 /src/common/file_utils.c
parent2333803d84ddabedc5ec5940a180245b4d4dfcca (diff)
downloadpostgresql-2b7259f855723f36d2ce81ad892583248dc1576f.tar.gz
postgresql-2b7259f855723f36d2ce81ad892583248dc1576f.zip
Silence pedantic compiler warning introduced in ce340e530d1
.../src/common/file_utils.c: In function ‘pg_pwrite_zeros’: .../src/common/file_utils.c:543:9: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 543 | const static PGAlignedBlock zbuffer = {{0}}; /* worth BLCKSZ */
Diffstat (limited to 'src/common/file_utils.c')
-rw-r--r--src/common/file_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_utils.c b/src/common/file_utils.c
index 3c125d66e99..d568d83b9f6 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 */
+ static const PGAlignedBlock zbuffer = {{0}}; /* worth BLCKSZ */
void *zerobuf_addr = unconstify(PGAlignedBlock *, &zbuffer)->data;
struct iovec iov[PG_IOV_MAX];
size_t remaining_size = size;