postgres.git / summary / log / commit / refs
commit 001cbb145f3250b0d69d6be3d5fa0236e1a261dc
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Tue Apr 19 17:01:51 2011 +0000
First released in: 9.1.0
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 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);
[parent: 390cf3209b71]