From 001cbb145f3250b0d69d6be3d5fa0236e1a261dc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 19 Apr 2011 20:01:51 +0300 Subject: [PATCH] Avoid unused variable warnings for certain configurations --- contrib/pg_test_fsync/pg_test_fsync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/pg_test_fsync/pg_test_fsync.c b/contrib/pg_test_fsync/pg_test_fsync.c index 305b3d0723..2b2e292022 100644 --- a/contrib/pg_test_fsync/pg_test_fsync.c +++ b/contrib/pg_test_fsync/pg_test_fsync.c @@ -359,9 +359,11 @@ test_open_syncs(void) static void test_open_sync(const char *msg, int writes_size) { +#ifdef OPEN_SYNC_FLAG int tmpfile, ops, writes; +#endif printf(LABEL_FORMAT, msg); fflush(stdout); -- 2.40.0