]> granicus.if.org Git - postgresql/commitdiff
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 e1fff7e6f8c487427b094b12bb94a6a088f28316..a00f6d708d2ce8820ab87e9db55337520d0c7e14 100644 (file)
@@ -55,7 +55,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.53 2007/06/30 04:08:05 alvherre Exp $
+ *       $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.54 2007/07/01 02:20:59 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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;