Skip to content

Commit

Permalink
Silence -Wunused-but-set-variable warnings
Browse files Browse the repository at this point in the history
/home/brad/tmp/minizip-ng/mz_strm_zstd.c:110:13: warning: variable 'total_in' set but not used [-Wunused-but-set-variable]
    int32_t total_in = 0;
            ^

/home/brad/tmp/minizip-ng/mz_strm_bzip.c:117:13: warning: variable 'total_in' set but not used [-Wunused-but-set-variable]
    int32_t total_in = 0;
            ^
  • Loading branch information
brad0 authored and nmoinvaz committed Dec 18, 2023
1 parent 487259b commit 782b139
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions mz_strm_bzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ int32_t mz_stream_bzip_read(void *stream, void *buf, int32_t size) {
uint64_t total_out_before = 0;
uint64_t total_in_after = 0;
uint64_t total_out_after = 0;
int32_t total_in = 0;
int32_t total_out = 0;
int32_t in_bytes = 0;
int32_t out_bytes = 0;
Expand Down Expand Up @@ -157,7 +156,6 @@ int32_t mz_stream_bzip_read(void *stream, void *buf, int32_t size) {
in_bytes = (int32_t)(total_in_before - total_in_after);
out_bytes = (int32_t)(total_out_after - total_out_before);

total_in += in_bytes;
total_out += out_bytes;

bzip->total_in += in_bytes;
Expand Down
2 changes: 0 additions & 2 deletions mz_strm_zstd.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ int32_t mz_stream_zstd_read(void *stream, void *buf, int32_t size) {
uint64_t total_in_after = 0;
uint64_t total_out_before = 0;
uint64_t total_out_after = 0;
int32_t total_in = 0;
int32_t total_out = 0;
int32_t in_bytes = 0;
int32_t out_bytes = 0;
Expand Down Expand Up @@ -154,7 +153,6 @@ int32_t mz_stream_zstd_read(void *stream, void *buf, int32_t size) {
in_bytes = (int32_t)(total_in_after - total_in_before);
out_bytes = (int32_t)(total_out_after - total_out_before);

total_in += in_bytes;
total_out += out_bytes;

zstd->total_in += in_bytes;
Expand Down

0 comments on commit 782b139

Please sign in to comment.