mirror of
https://github.com/zlib-ng/minizip-ng
synced 2026-08-25 14:26:08 -04:00
Fixed compiler warnings with MZ_ZIP_NO_COMPRESSION.
This commit is contained in:
parent
4d4c9db5b0
commit
4d29ba4782
3 changed files with 9 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ static int32_t mz_stream_bzip_flush(void *stream)
|
|||
return MZ_OK;
|
||||
}
|
||||
|
||||
#ifndef MZ_ZIP_NO_COMPRESSION
|
||||
static int32_t mz_stream_bzip_compress(void *stream, int flush)
|
||||
{
|
||||
mz_stream_bzip *bzip = (mz_stream_bzip *)stream;
|
||||
|
|
@ -254,6 +255,7 @@ static int32_t mz_stream_bzip_compress(void *stream, int flush)
|
|||
|
||||
return MZ_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
int32_t mz_stream_bzip_write(void *stream, const void *buf, int32_t size)
|
||||
{
|
||||
|
|
@ -262,6 +264,7 @@ int32_t mz_stream_bzip_write(void *stream, const void *buf, int32_t size)
|
|||
|
||||
#ifdef MZ_ZIP_NO_COMPRESSION
|
||||
MZ_UNUSED(bzip);
|
||||
MZ_UNUSED(buf);
|
||||
err = MZ_SUPPORT_ERROR;
|
||||
#else
|
||||
bzip->bzstream.next_in = (char *)(intptr_t)buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue