Skip to content

Commit 8e39259

Browse files
committed
Remove unused variable in checksum_file()
The 'offset' variable was set but otherwise unused. Per buildfarm animals with clang, e.g. sifaka and longlin.
1 parent f8ce4ed commit 8e39259

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/bin/pg_combinebackup/copy_file.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ checksum_file(const char *src, pg_checksum_context *checksum_ctx)
126126
uint8 *buffer;
127127
const int buffer_size = 50 * BLCKSZ;
128128
ssize_t rb;
129-
unsigned offset = 0;
130129

131130
/* bail out if no checksum needed */
132131
if (checksum_ctx->type == CHECKSUM_TYPE_NONE)
@@ -141,8 +140,6 @@ checksum_file(const char *src, pg_checksum_context *checksum_ctx)
141140
{
142141
if (pg_checksum_update(checksum_ctx, buffer, rb) < 0)
143142
pg_fatal("could not update checksum of file \"%s\"", src);
144-
145-
offset += rb;
146143
}
147144

148145
if (rb < 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy