]> granicus.if.org Git - postgresql/commitdiff
Avoid unused variable warnings for certain configurations
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 19 Apr 2011 17:01:51 +0000 (20:01 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 19 Apr 2011 17:01:51 +0000 (20:01 +0300)
contrib/pg_test_fsync/pg_test_fsync.c

index 305b3d0723ddf23014d56b87c0e4aa2ab3afd6a0..2b2e292022a3675255c3caab4bdf894ea9ca309b 100644 (file)
@@ -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);