aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-04-19 20:01:51 +0300
committerPeter Eisentraut <peter_e@gmx.net>2011-04-19 20:01:51 +0300
commit001cbb145f3250b0d69d6be3d5fa0236e1a261dc (patch)
treefb9f9edea11f6750118f27d70853cd77c76d14e4
parent390cf3209b718382c0ec9793b714422189e9b68b (diff)
downloadpostgresql-001cbb145f3250b0d69d6be3d5fa0236e1a261dc.tar.gz
postgresql-001cbb145f3250b0d69d6be3d5fa0236e1a261dc.zip
Avoid unused variable warnings for certain configurations
-rw-r--r--contrib/pg_test_fsync/pg_test_fsync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pg_test_fsync/pg_test_fsync.c b/contrib/pg_test_fsync/pg_test_fsync.c
index 305b3d0723d..2b2e292022a 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);