Commit 7032aafa authored by Jean-Philippe Andre's avatar Jean-Philippe Andre

Zip: remove compilation warnings in libs/unzip

parent a2b72dbb
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
*/ */
static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab) static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab)
{ {
(void) pcrc_32_tab;
unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an
* unpredictable manner on 16-bit systems; not a problem * unpredictable manner on 16-bit systems; not a problem
* with any known compiler so far, though */ * with any known compiler so far, though */
......
...@@ -70,6 +70,7 @@ voidpf ZCALLBACK fopen_file_func (opaque, filename, mode) ...@@ -70,6 +70,7 @@ voidpf ZCALLBACK fopen_file_func (opaque, filename, mode)
const char* filename; const char* filename;
int mode; int mode;
{ {
(void) opaque;
FILE* file = NULL; FILE* file = NULL;
const char* mode_fopen = NULL; const char* mode_fopen = NULL;
if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ) if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
...@@ -93,6 +94,7 @@ uLong ZCALLBACK fread_file_func (opaque, stream, buf, size) ...@@ -93,6 +94,7 @@ uLong ZCALLBACK fread_file_func (opaque, stream, buf, size)
void* buf; void* buf;
uLong size; uLong size;
{ {
(void) opaque;
uLong ret; uLong ret;
ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream); ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
return ret; return ret;
...@@ -105,6 +107,7 @@ uLong ZCALLBACK fwrite_file_func (opaque, stream, buf, size) ...@@ -105,6 +107,7 @@ uLong ZCALLBACK fwrite_file_func (opaque, stream, buf, size)
const void* buf; const void* buf;
uLong size; uLong size;
{ {
(void) opaque;
uLong ret; uLong ret;
ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream); ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
return ret; return ret;
...@@ -114,6 +117,7 @@ long ZCALLBACK ftell_file_func (opaque, stream) ...@@ -114,6 +117,7 @@ long ZCALLBACK ftell_file_func (opaque, stream)
voidpf opaque; voidpf opaque;
voidpf stream; voidpf stream;
{ {
(void) opaque;
long ret; long ret;
ret = ftell((FILE *)stream); ret = ftell((FILE *)stream);
return ret; return ret;
...@@ -125,6 +129,7 @@ long ZCALLBACK fseek_file_func (opaque, stream, offset, origin) ...@@ -125,6 +129,7 @@ long ZCALLBACK fseek_file_func (opaque, stream, offset, origin)
uLong offset; uLong offset;
int origin; int origin;
{ {
(void) opaque;
int fseek_origin=0; int fseek_origin=0;
long ret; long ret;
switch (origin) switch (origin)
...@@ -149,6 +154,7 @@ int ZCALLBACK fclose_file_func (opaque, stream) ...@@ -149,6 +154,7 @@ int ZCALLBACK fclose_file_func (opaque, stream)
voidpf opaque; voidpf opaque;
voidpf stream; voidpf stream;
{ {
(void) opaque;
int ret; int ret;
ret = fclose((FILE *)stream); ret = fclose((FILE *)stream);
return ret; return ret;
...@@ -158,6 +164,7 @@ int ZCALLBACK ferror_file_func (opaque, stream) ...@@ -158,6 +164,7 @@ int ZCALLBACK ferror_file_func (opaque, stream)
voidpf opaque; voidpf opaque;
voidpf stream; voidpf stream;
{ {
(void) opaque;
int ret; int ret;
ret = ferror((FILE *)stream); ret = ferror((FILE *)stream);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment