]> granicus.if.org Git - postgresql/commitdiff
Silence compiler warnings, per Bruce.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Apr 2007 16:26:44 +0000 (16:26 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Apr 2007 16:26:44 +0000 (16:26 +0000)
src/backend/commands/analyze.c
src/backend/commands/vacuumlazy.c

index f558458d778bbc438e029db4094292cbde7e5a3a..700137ec2473f3e071b8ae02b334e3cf285eae12 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.105 2007/04/18 16:44:17 alvherre Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.106 2007/04/19 16:26:44 alvherre Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -468,7 +468,7 @@ analyze_rel(Oid relid, VacuumStmt *vacstmt)
        /* Log the action if appropriate */
        if (IsAutoVacuumWorkerProcess() && Log_autovacuum >= 0)
        {
-               long    diff;
+               long    diff = 0L;
 
                if (Log_autovacuum > 0)
                {
index 4e4f6373a46fd7434de2dcd411b9b65116203796..0b04cfb7b2f1b39459ded2e91747eb3d7f6e6f9c 100644 (file)
@@ -36,7 +36,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.86 2007/04/18 16:44:18 alvherre Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.87 2007/04/19 16:26:44 alvherre Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -217,7 +217,7 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt)
        /* and log the action if appropriate */
        if (IsAutoVacuumWorkerProcess() && Log_autovacuum >= 0)
        {
-               long    diff;
+               long    diff = 0L;
 
                if (Log_autovacuum > 0)
                {