Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

-3
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)