Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3ae28ce

Browse files
committed
Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined.
Per buildfarm.
1 parent f5a0fd2 commit 3ae28ce

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

contrib/pg_test_fsync/pg_test_fsync.c

+4-5
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
static void
396398
test_open_sync(const char *msg, int writes_size)
397399
{
400+
#ifdef OPEN_SYNC_FLAG
398401
int tmpfile, ops, writes;
399402

400-
/*
401-
* Test open_sync with different size files
402-
*/
403-
#ifdef OPEN_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)