Add 'volatile' to suppress 'variable might be clobbered by longjmp'
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Jul 2007 02:20:59 +0000 (02:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Jul 2007 02:20:59 +0000 (02:20 +0000)
warning emitted by some versions of gcc.

src/backend/postmaster/autovacuum.c

index dec53daf305ddd41208407634ce075d92b5a29d5..dccd853cb22d419b4954875ff106d15d80656d8d 100644 (file)
@@ -1776,7 +1776,7 @@ do_autovacuum(void)
        List       *table_oids = NIL;
        List       *toast_oids = NIL;
        List       *table_toast_list = NIL;
-       ListCell   *cell;
+       ListCell   * volatile cell;
        PgStat_StatDBEntry *shared;
        PgStat_StatDBEntry *dbentry;
        BufferAccessStrategy bstrategy;