mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
fix warnings when zlib is not available
This commit is contained in:
parent
1c235242f9
commit
8d579b7a0b
2 changed files with 2 additions and 4 deletions
|
@ -101,7 +101,6 @@ locs_load (char *mapname)
|
|||
vec3_t loc;
|
||||
char tmp[PATH_MAX];
|
||||
char foundname[MAX_OSPATH];
|
||||
char *tmpfndnme;
|
||||
int templength = 0;
|
||||
|
||||
snprintf (tmp, sizeof (tmp), "maps/%s.loc", mapname);
|
||||
|
@ -111,8 +110,7 @@ locs_load (char *mapname)
|
|||
return;
|
||||
}
|
||||
#ifdef HAVE_ZLIB
|
||||
tmpfndnme = foundname;
|
||||
if (strncmp(tmpfndnme + strlen(foundname) - 3,".gz",3) == 0)
|
||||
if (strncmp(foundname + strlen(foundname) - 3,".gz",3) == 0)
|
||||
locisgz = 1;
|
||||
else
|
||||
locisgz = 0;
|
||||
|
|
|
@ -399,7 +399,7 @@ void
|
|||
locs_dumploc ()
|
||||
{
|
||||
char *mapname, *t1;
|
||||
QFile *locfd;
|
||||
QFile *locfd = 0;
|
||||
char locfile[MAX_OSPATH];
|
||||
int i;
|
||||
if (Cmd_Argc () != 1) {
|
||||
|
|
Loading…
Reference in a new issue