mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Remove unused variable in checksum_file()
The 'offset' variable was set but otherwise unused. Per buildfarm animals with clang, e.g. sifaka and longlin.
This commit is contained in:
parent
f8ce4ed78c
commit
8e392595e5
@ -126,7 +126,6 @@ checksum_file(const char *src, pg_checksum_context *checksum_ctx)
|
|||||||
uint8 *buffer;
|
uint8 *buffer;
|
||||||
const int buffer_size = 50 * BLCKSZ;
|
const int buffer_size = 50 * BLCKSZ;
|
||||||
ssize_t rb;
|
ssize_t rb;
|
||||||
unsigned offset = 0;
|
|
||||||
|
|
||||||
/* bail out if no checksum needed */
|
/* bail out if no checksum needed */
|
||||||
if (checksum_ctx->type == CHECKSUM_TYPE_NONE)
|
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)
|
if (pg_checksum_update(checksum_ctx, buffer, rb) < 0)
|
||||||
pg_fatal("could not update checksum of file \"%s\"", src);
|
pg_fatal("could not update checksum of file \"%s\"", src);
|
||||||
|
|
||||||
offset += rb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rb < 0)
|
if (rb < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user