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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy