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

Commit3ae28ce

Browse files
committed
Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined.
Per buildfarm.
1 parentf5a0fd2 commit3ae28ce

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎contrib/pg_test_fsync/pg_test_fsync.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,15 @@ test_open_syncs(void)
391391
test_open_sync("16 1k open_sync writes",1);
392392
}
393393

394-
394+
/*
395+
* Test open_sync with different size files
396+
*/
395397
staticvoid
396398
test_open_sync(constchar*msg,intwrites_size)
397399
{
400+
#ifdefOPEN_SYNC_FLAG
398401
inttmpfile,ops,writes;
399402

400-
/*
401-
* Test open_sync with different size files
402-
*/
403-
#ifdefOPEN_SYNC_FLAG
404403
if ((tmpfile=open(filename,O_RDWR |OPEN_SYNC_FLAG |PG_O_DIRECT,0))==-1)
405404
printf(NA_FORMAT,"o_direct","n/a**\n");
406405
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp