a couple of warnings

This commit is contained in:
nhmall
2022-09-30 08:59:57 -04:00
parent 3dea129a38
commit 83f64ee2b6
2 changed files with 8 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ dumpit(void)
DD.flags.rogue_like ? " rogue_like" : "",
DD.flags.maze_like ? " maze_like" : "",
DD.flags.hellish ? " hellish" : "");
getchar();
(void) getchar();
}
fprintf(stderr, "\nSpecial levels:\n");
for (x = g.sp_levchn; x; x = x->next) {
@@ -103,7 +103,7 @@ dumpit(void)
x->flags.maze_like ? " maze_like" : "",
x->flags.hellish ? " hellish" : "",
x->flags.town ? " town" : "");
getchar();
(void) getchar();
}
fprintf(stderr, "\nBranches:\n");
for (br = g.branches; br; br = br->next) {
@@ -120,9 +120,9 @@ dumpit(void)
br->end1.dnum, br->end1.dlevel, br->end2.dnum,
br->end2.dlevel, br->end1_up ? "end1 up" : "end1 down");
}
getchar();
(void) getchar();
fprintf(stderr, "\nDone\n");
getchar();
(void) getchar();
}
#endif

View File

@@ -154,6 +154,8 @@ eos(char *s)
#define UNUSED_if_no_DLB UNUSED
#endif
DISABLE_WARNING_UNREACHABLE_CODE
int
main(int argc UNUSED_if_no_DLB, char **argv UNUSED_if_no_DLB)
{
@@ -482,6 +484,8 @@ main(int argc UNUSED_if_no_DLB, char **argv UNUSED_if_no_DLB)
return 0;
}
RESTORE_WARNING_UNREACHABLE_CODE
#ifdef DLB
#ifdef DLBLIB