quiet some macosx warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -436,7 +436,7 @@ char *whynot;
|
||||
void
|
||||
savestateinlock()
|
||||
{
|
||||
int hpid;
|
||||
int hpid = 0;
|
||||
static boolean havestate = TRUE;
|
||||
char whynot[BUFSZ];
|
||||
NHFILE *nhfp;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
349
src/sfdata.c
349
src/sfdata.c
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user