mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
And silence a "set but not used" warning.
This commit is contained in:
parent
056d6a08ff
commit
bf58ad9d80
1 changed files with 4 additions and 0 deletions
|
@ -217,7 +217,9 @@ Qdopen (int fd, const char *mode)
|
|||
{
|
||||
QFile *file;
|
||||
char *m, *p;
|
||||
#ifdef HAVE_ZLIB
|
||||
int zip = 0;
|
||||
#endif
|
||||
int len = strlen (mode);
|
||||
|
||||
m = alloca (len + 1);
|
||||
|
@ -226,7 +228,9 @@ Qdopen (int fd, const char *mode)
|
|||
#endif
|
||||
for (p = m; *mode && p - m < len; mode++) {
|
||||
if (*mode == 'z') {
|
||||
#ifdef HAVE_ZLIB
|
||||
zip = 1;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
*p++ = *mode;
|
||||
|
|
Loading…
Reference in a new issue