mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +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;
|
QFile *file;
|
||||||
char *m, *p;
|
char *m, *p;
|
||||||
|
#ifdef HAVE_ZLIB
|
||||||
int zip = 0;
|
int zip = 0;
|
||||||
|
#endif
|
||||||
int len = strlen (mode);
|
int len = strlen (mode);
|
||||||
|
|
||||||
m = alloca (len + 1);
|
m = alloca (len + 1);
|
||||||
|
@ -226,7 +228,9 @@ Qdopen (int fd, const char *mode)
|
||||||
#endif
|
#endif
|
||||||
for (p = m; *mode && p - m < len; mode++) {
|
for (p = m; *mode && p - m < len; mode++) {
|
||||||
if (*mode == 'z') {
|
if (*mode == 'z') {
|
||||||
|
#ifdef HAVE_ZLIB
|
||||||
zip = 1;
|
zip = 1;
|
||||||
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
*p++ = *mode;
|
*p++ = *mode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue