From: Peter Eisentraut Date: Tue, 19 Apr 2011 17:01:51 +0000 (+0300) Subject: Avoid unused variable warnings for certain configurations X-Git-Tag: REL9_1_BETA1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=001cbb145f3250b0d69d6be3d5fa0236e1a261dc;p=postgresql Avoid unused variable warnings for certain configurations --- 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);