Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused-but-set-variable from blosc.c #382

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions blosc/blosc.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ static int blosc_d(struct blosc_context* context, int32_t blocksize,
int32_t nbytes; /* number of decompressed bytes in split */
const int32_t compressedsize = context->compressedsize;
int32_t cbytes; /* number of compressed bytes in split */
int32_t ctbytes = 0; /* number of compressed bytes in block */
int32_t ntbytes = 0; /* number of uncompressed bytes in block */
uint8_t *_tmp = dest;
int32_t typesize = context->typesize;
Expand Down Expand Up @@ -769,7 +768,6 @@ static int blosc_d(struct blosc_context* context, int32_t blocksize,
if (cbytes < 0 || cbytes > context->compressedsize - src_offset) {
return -1;
}
ctbytes += (int32_t)sizeof(int32_t);
src = base_src + src_offset;
/* Uncompress */
if (cbytes == neblock) {
Expand All @@ -784,7 +782,6 @@ static int blosc_d(struct blosc_context* context, int32_t blocksize,
}
}
src_offset += cbytes;
ctbytes += cbytes;
_tmp += nbytes;
ntbytes += nbytes;
} /* Closes j < nsplits */
Expand Down