quiet some macosx warnings
This commit is contained in:
+1
-1
@@ -1679,7 +1679,7 @@ validate(nhfp, name)
|
|||||||
NHFILE *nhfp;
|
NHFILE *nhfp;
|
||||||
const char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
int rlen;
|
int rlen = 0;
|
||||||
struct savefile_info sfi;
|
struct savefile_info sfi;
|
||||||
unsigned long utdflags = 0L;
|
unsigned long utdflags = 0L;
|
||||||
boolean verbose = name ? TRUE : FALSE, reslt = FALSE;
|
boolean verbose = name ? TRUE : FALSE, reslt = FALSE;
|
||||||
|
|||||||
+1
-1
@@ -436,7 +436,7 @@ char *whynot;
|
|||||||
void
|
void
|
||||||
savestateinlock()
|
savestateinlock()
|
||||||
{
|
{
|
||||||
int hpid;
|
int hpid = 0;
|
||||||
static boolean havestate = TRUE;
|
static boolean havestate = TRUE;
|
||||||
char whynot[BUFSZ];
|
char whynot[BUFSZ];
|
||||||
NHFILE *nhfp;
|
NHFILE *nhfp;
|
||||||
|
|||||||
@@ -635,6 +635,12 @@ int cnt;
|
|||||||
(void) fprintf(nhfp->fpdebug, "%s %s %s cnt=%d ", t1, t2, t3, cnt);
|
(void) fprintf(nhfp->fpdebug, "%s %s %s cnt=%d ", t1, t2, t3, cnt);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
nhUse(nhfp);
|
||||||
|
nhUse(t1);
|
||||||
|
nhUse(t2);
|
||||||
|
nhUse(t3);
|
||||||
|
nhUse(cnt);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+209
-140
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -145,7 +145,7 @@ int fd;
|
|||||||
if ((bw_FILE[idx] = fdopen(fd, "w")) == 0)
|
if ((bw_FILE[idx] = fdopen(fd, "w")) == 0)
|
||||||
panic("buffering of file %d failed", fd);
|
panic("buffering of file %d failed", fd);
|
||||||
}
|
}
|
||||||
bw_buffered[idx] = (bw_FILE[idx] > 0);
|
bw_buffered[idx] = (bw_FILE[idx] != 0);
|
||||||
#else
|
#else
|
||||||
bw_buffered[idx] = 1;
|
bw_buffered[idx] = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+3
-3
@@ -1035,7 +1035,7 @@ static void generate_c_files()
|
|||||||
deblank(readtagstypes[k].dtype));
|
deblank(readtagstypes[k].dtype));
|
||||||
|
|
||||||
Fprintf(SFO_DATA,
|
Fprintf(SFO_DATA,
|
||||||
" char *parent = \"%s\";\n",
|
" const char *parent = \"%s\";\n",
|
||||||
readtagstypes[k].dtype);
|
readtagstypes[k].dtype);
|
||||||
|
|
||||||
Fprintf(SFI_PROTO,
|
Fprintf(SFI_PROTO,
|
||||||
@@ -1059,7 +1059,7 @@ static void generate_c_files()
|
|||||||
deblank(readtagstypes[k].dtype));
|
deblank(readtagstypes[k].dtype));
|
||||||
|
|
||||||
Fprintf(SFI_DATA,
|
Fprintf(SFI_DATA,
|
||||||
" char *parent = \"%s\";\n",
|
" const char *parent = \"%s\";\n",
|
||||||
readtagstypes[k].dtype);
|
readtagstypes[k].dtype);
|
||||||
|
|
||||||
Sprintf(sfparent, "%s %s", pt, readtagstypes[k].dtype);
|
Sprintf(sfparent, "%s %s", pt, readtagstypes[k].dtype);
|
||||||
@@ -1083,7 +1083,7 @@ static void generate_c_files()
|
|||||||
readtagstypes[k].dtype);
|
readtagstypes[k].dtype);
|
||||||
|
|
||||||
Fprintf(SFI_DATA,
|
Fprintf(SFI_DATA,
|
||||||
" if (nhfp->addinfo)\n"
|
" nhUse(myname);\n if (nhfp->addinfo)\n"
|
||||||
" sfi_addinfo(nhfp, myparent, \"start\", \"%s\", 1);\n",
|
" sfi_addinfo(nhfp, myparent, \"start\", \"%s\", 1);\n",
|
||||||
readtagstypes[k].dtype);
|
readtagstypes[k].dtype);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user