Skip to content

Commit

Permalink
Remove unused-but-set-variable from blosc.c
Browse files Browse the repository at this point in the history
Permits `-Wunused-but-set-variable` to succeed on this code.
  • Loading branch information
r-barnes authored Jul 15, 2024
1 parent 4f8541c commit 92cc810
Showing 1 changed file with 0 additions and 3 deletions.
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

0 comments on commit 92cc810

Please sign in to comment.