Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined.
Per buildfarm.
This commit is contained in:
parent
f5a0fd2f3b
commit
3ae28ce8c4
@ -391,16 +391,15 @@ test_open_syncs(void)
|
|||||||
test_open_sync("16 1k open_sync writes", 1);
|
test_open_sync("16 1k open_sync writes", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
test_open_sync(const char *msg, int writes_size)
|
|
||||||
{
|
|
||||||
int tmpfile, ops, writes;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test open_sync with different size files
|
* Test open_sync with different size files
|
||||||
*/
|
*/
|
||||||
|
static void
|
||||||
|
test_open_sync(const char *msg, int writes_size)
|
||||||
|
{
|
||||||
#ifdef OPEN_SYNC_FLAG
|
#ifdef OPEN_SYNC_FLAG
|
||||||
|
int tmpfile, ops, writes;
|
||||||
|
|
||||||
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
|
if ((tmpfile = open(filename, O_RDWR | OPEN_SYNC_FLAG | PG_O_DIRECT, 0)) == -1)
|
||||||
printf(NA_FORMAT, "o_direct", "n/a**\n");
|
printf(NA_FORMAT, "o_direct", "n/a**\n");
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user