From: Peter Eisentraut Date: Tue, 19 Apr 2011 17:01:51 +0000 (+0300) Subject: Avoid unused variable warnings for certain configurations X-Git-Tag: bdr/0.1~3163 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=001cbb145f3250b0d69d6be3d5fa0236e1a261dc;p=users%2Fandresfreund%2Fpostgres.git 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);