]> git.sesse.net Git - vlc/blobdiff - libs/unzip/ioapi.c
Zip: remove compilation warnings in libs/unzip
[vlc] / libs / unzip / ioapi.c
index f1bee23e64b09d87dfc30285fdc1a0cf0051ca03..301ae73e7184613442d312dcb3cb87cfef28a58f 100644 (file)
@@ -70,6 +70,7 @@ voidpf ZCALLBACK fopen_file_func (opaque, filename, mode)
    const char* filename;
    int mode;
 {
+    (void) opaque;
     FILE* file = NULL;
     const char* mode_fopen = NULL;
     if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
@@ -93,6 +94,7 @@ uLong ZCALLBACK fread_file_func (opaque, stream, buf, size)
    void* buf;
    uLong size;
 {
+    (void) opaque;
     uLong ret;
     ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
     return ret;
@@ -105,6 +107,7 @@ uLong ZCALLBACK fwrite_file_func (opaque, stream, buf, size)
    const void* buf;
    uLong size;
 {
+    (void) opaque;
     uLong ret;
     ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
     return ret;
@@ -114,6 +117,7 @@ long ZCALLBACK ftell_file_func (opaque, stream)
    voidpf opaque;
    voidpf stream;
 {
+    (void) opaque;
     long ret;
     ret = ftell((FILE *)stream);
     return ret;
@@ -125,6 +129,7 @@ long ZCALLBACK fseek_file_func (opaque, stream, offset, origin)
    uLong offset;
    int origin;
 {
+    (void) opaque;
     int fseek_origin=0;
     long ret;
     switch (origin)
@@ -149,6 +154,7 @@ int ZCALLBACK fclose_file_func (opaque, stream)
    voidpf opaque;
    voidpf stream;
 {
+    (void) opaque;
     int ret;
     ret = fclose((FILE *)stream);
     return ret;
@@ -158,6 +164,7 @@ int ZCALLBACK ferror_file_func (opaque, stream)
    voidpf opaque;
    voidpf stream;
 {
+    (void) opaque;
     int ret;
     ret = ferror((FILE *)stream);
     return ret;