quiet some macosx warnings

This commit is contained in:
nhmall
2019-06-24 23:48:37 -04:00
parent e34c7daf02
commit 560f21f5db
6 changed files with 221 additions and 146 deletions

View File

@@ -1679,7 +1679,7 @@ validate(nhfp, name)
NHFILE *nhfp;
const char *name;
{
int rlen;
int rlen = 0;
struct savefile_info sfi;
unsigned long utdflags = 0L;
boolean verbose = name ? TRUE : FALSE, reslt = FALSE;

View File

@@ -436,7 +436,7 @@ char *whynot;
void
savestateinlock()
{
int hpid;
int hpid = 0;
static boolean havestate = TRUE;
char whynot[BUFSZ];
NHFILE *nhfp;

View File

@@ -635,6 +635,12 @@ int cnt;
(void) fprintf(nhfp->fpdebug, "%s %s %s cnt=%d ", t1, t2, t3, cnt);
}
#endif
#else
nhUse(nhfp);
nhUse(t1);
nhUse(t2);
nhUse(t3);
nhUse(cnt);
#endif
}

File diff suppressed because it is too large Load Diff

View File

@@ -145,7 +145,7 @@ int fd;
if ((bw_FILE[idx] = fdopen(fd, "w")) == 0)
panic("buffering of file %d failed", fd);
}
bw_buffered[idx] = (bw_FILE[idx] > 0);
bw_buffered[idx] = (bw_FILE[idx] != 0);
#else
bw_buffered[idx] = 1;
#endif

View File

@@ -1035,7 +1035,7 @@ static void generate_c_files()
deblank(readtagstypes[k].dtype));
Fprintf(SFO_DATA,
" char *parent = \"%s\";\n",
" const char *parent = \"%s\";\n",
readtagstypes[k].dtype);
Fprintf(SFI_PROTO,
@@ -1059,7 +1059,7 @@ static void generate_c_files()
deblank(readtagstypes[k].dtype));
Fprintf(SFI_DATA,
" char *parent = \"%s\";\n",
" const char *parent = \"%s\";\n",
readtagstypes[k].dtype);
Sprintf(sfparent, "%s %s", pt, readtagstypes[k].dtype);
@@ -1083,7 +1083,7 @@ static void generate_c_files()
readtagstypes[k].dtype);
Fprintf(SFI_DATA,
" if (nhfp->addinfo)\n"
" nhUse(myname);\n if (nhfp->addinfo)\n"
" sfi_addinfo(nhfp, myparent, \"start\", \"%s\", 1);\n",
readtagstypes[k].dtype);