fix warnings when zlib is not available

This commit is contained in:
Bill Currie 2000-12-20 21:31:09 +00:00
parent 1c235242f9
commit 8d579b7a0b
2 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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) {