diff --git a/src/physfs/zlib123/ioapi.c b/src/physfs/zlib123/ioapi.c
index 1c27fc0d1a7742b88bcc5548d511ccd0b6ea1667..187d26f8960729c4a4b6959b5a406881195b0abd 100644
--- a/src/physfs/zlib123/ioapi.c
+++ b/src/physfs/zlib123/ioapi.c
@@ -57,7 +57,6 @@ voidpf ZCALLBACK fopen_file_func (opaque, filename, mode)
    int mode;
 {
     PHYSFS_file* file = NULL;
-    const char* mode_fopen = NULL;
     if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
 	    file = PHYSFS_openRead(filename);
     else