Skip to content

Commit 2b7259f

Browse files
committed
Silence pedantic compiler warning introduced in ce340e5
.../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 */
1 parent 2333803 commit 2b7259f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/file_utils.c

Lines changed: 1 addition & 1 deletion
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+
static const 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy