Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e39259

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 parentf8ce4ed commit8e39259

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
constintbuffer_size=50*BLCKSZ;
128128
ssize_trb;
129-
unsignedoffset=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)

[8]ページ先頭

©2009-2025 Movatter.jp