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

+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+
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)