Remove unused variable.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 24 Aug 2009 14:15:09 +0000 (14:15 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 24 Aug 2009 14:15:09 +0000 (14:15 +0000)
Per Grzegorz Jaskiewicz report from LLVM static checker

src/bin/pg_dump/pg_backup_custom.c

index a90d19bb3aeb1877e3967086ba38bbd7eb52198c..607044660aa2738a5c59b1423b457db97fef51b6 100644 (file)
@@ -19,7 +19,7 @@
  *
  *
  * IDENTIFICATION
- *     $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.43 2009/07/21 21:46:10 tgl Exp $
+ *     $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.44 2009/08/24 14:15:09 alvherre Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -441,7 +441,6 @@ _PrintTocData(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt)
    int         id;
    lclTocEntry *tctx = (lclTocEntry *) te->formatData;
    int         blkType;
-   int         found = 0;
 
    if (tctx->dataState == K_OFFSET_NO_DATA)
        return;
@@ -450,8 +449,6 @@ _PrintTocData(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt)
    {
        /* Skip over unnecessary blocks until we get the one we want. */
 
-       found = 0;
-
        _readBlockHeader(AH, &blkType, &id);
 
        while (id != te->dumpId)