projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ce4ed
)
Remove unused variable in checksum_file()
author
Tomas Vondra
<
[email protected]
>
Fri, 5 Apr 2024 16:13:15 +0000
(18:13 +0200)
committer
Tomas Vondra
<
[email protected]
>
Fri, 5 Apr 2024 16:13:15 +0000
(18:13 +0200)
The 'offset' variable was set but otherwise unused.
Per buildfarm animals with clang, e.g. sifaka and longlin.
src/bin/pg_combinebackup/copy_file.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_combinebackup/copy_file.c
b/src/bin/pg_combinebackup/copy_file.c
index 844896d66eb3452f6d2e56bdf2195ff6e1ee7631..b00266cde54327fc39bda37da004d0cccd459846 100644
(file)
--- a/
src/bin/pg_combinebackup/copy_file.c
+++ b/
src/bin/pg_combinebackup/copy_file.c
@@
-126,7
+126,6
@@
checksum_file(const char *src, pg_checksum_context *checksum_ctx)
uint8 *buffer;
const int buffer_size = 50 * BLCKSZ;
ssize_t rb;
- unsigned offset = 0;
/* bail out if no checksum needed */
if (checksum_ctx->type == CHECKSUM_TYPE_NONE)
@@
-141,8
+140,6
@@
checksum_file(const char *src, pg_checksum_context *checksum_ctx)
{
if (pg_checksum_update(checksum_ctx, buffer, rb) < 0)
pg_fatal("could not update checksum of file \"%s\"", src);
-
- offset += rb;
}
if (rb < 0)