mirror of
https://github.com/postgres/postgres.git
synced 2026-03-31 23:07:04 -04:00
Silence pedantic compiler warning introduced in ce340e530d
.../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 */
This commit is contained in:
parent
2333803d84
commit
2b7259f855
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue