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 d2857250d183951d1a55419fa743f88caea38653..ea16c0b42b0916b02ebf737663ba8aeebda171b8 100644 (file)
@@ -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)