Fixed unused variable warnings on Ubuntu.

This commit is contained in:
Nathan Moinvaziri 2023-04-18 11:31:41 -07:00
parent 76ed7768d5
commit 521eeae6a9
3 changed files with 4 additions and 1 deletions

View file

@ -191,6 +191,8 @@ int32_t mz_stream_zlib_read(void *stream, void *buf, int32_t size) {
}
} while (zlib->zstream.avail_out > 0);
MZ_UNUSED(total_in);
if (zlib->error != 0) {
/* Zlib errors are compatible with MZ */
return zlib->error;