[vlc-devel] commit: Zip: remove compilation warnings in libs/unzip ( Jean-Philippe Andre )

git version control git at videolan.org
Tue Jan 27 23:17:53 CET 2009


vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Tue Jan 27 22:38:25 2009 +0100| [7032aafade78a792d76c5cacaccc7c79f4f64de4] | committer: Jean-Philippe Andre 

Zip: remove compilation warnings in libs/unzip

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7032aafade78a792d76c5cacaccc7c79f4f64de4
---

 libs/unzip/crypt.h |    1 +
 libs/unzip/ioapi.c |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/libs/unzip/crypt.h b/libs/unzip/crypt.h
index 622f4bc..c7f16a5 100644
--- a/libs/unzip/crypt.h
+++ b/libs/unzip/crypt.h
@@ -34,6 +34,7 @@
  */
 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
                      * unpredictable manner on 16-bit systems; not a problem
                      * with any known compiler so far, though */
diff --git a/libs/unzip/ioapi.c b/libs/unzip/ioapi.c
index f1bee23..301ae73 100644
--- a/libs/unzip/ioapi.c
+++ b/libs/unzip/ioapi.c
@@ -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;




More information about the vlc-devel mailing list