Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b7259f

Browse files
committed
Silence pedantic compiler warning introduced ince340e5
.../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 parent2333803 commit2b7259f

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(intfd,size_tsize,off_toffset)
542542
{
543-
conststaticPGAlignedBlockzbuffer= {{0}};/* worth BLCKSZ */
543+
staticconstPGAlignedBlockzbuffer= {{0}};/* worth BLCKSZ */
544544
void*zerobuf_addr=unconstify(PGAlignedBlock*,&zbuffer)->data;
545545
structioveciov[PG_IOV_MAX];
546546
size_tremaining_size=size;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp