a couple of warnings in files.c
Warning C6031 Return value ignored: 'rename'. src/files.c 1240 Warning C6031 Return value ignored: 'write'. src/files.c 3879
This commit is contained in:
@@ -1237,7 +1237,7 @@ get_saved_games(void)
|
|||||||
|
|
||||||
if (strcmp(fq_old_save, fq_new_save) != 0
|
if (strcmp(fq_old_save, fq_new_save) != 0
|
||||||
&& !file_exists(fq_new_save))
|
&& !file_exists(fq_new_save))
|
||||||
rename(fq_old_save, fq_new_save);
|
(void) rename(fq_old_save, fq_new_save);
|
||||||
|
|
||||||
result[j++] = r;
|
result[j++] = r;
|
||||||
}
|
}
|
||||||
@@ -3876,7 +3876,7 @@ recover_savefile(void)
|
|||||||
if (lnhfp) {
|
if (lnhfp) {
|
||||||
/* any or all of these may not exist */
|
/* any or all of these may not exist */
|
||||||
levc = (xint16) lev;
|
levc = (xint16) lev;
|
||||||
write(snhfp->fd, (genericptr_t) &levc, sizeof(levc));
|
(void) write(snhfp->fd, (genericptr_t) &levc, sizeof(levc));
|
||||||
if (!copy_bytes(lnhfp->fd, snhfp->fd)) {
|
if (!copy_bytes(lnhfp->fd, snhfp->fd)) {
|
||||||
close_nhfile(lnhfp);
|
close_nhfile(lnhfp);
|
||||||
close_nhfile(snhfp);
|
close_nhfile(snhfp);
|
||||||
|
|||||||
Reference in New Issue
Block a user