Silence -Wunused-but-set-variable warnings

/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;
            ^
This commit is contained in:
Brad Smith 2023-12-17 20:46:57 -05:00 committed by Nathan Moinvaziri
parent 487259b09a
commit 782b139ee7
2 changed files with 0 additions and 4 deletions

View file

@ -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;
@ -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;