lint cleanup to pacify gcc

I upgraded from OSX 10.5.8 via 10.6.3 to 10.6.8, plus Xcode to whatever
version was on the 10.6 dvd, and ended up with a more recent version of
gcc that is configured to use 64 bit longs and 64 bit pointers (by
default; presumably that can be changed if necessary).  It triggered
several warnings about converting int to pointer of different size or
vice versa even when explicit casts were in use, and a couple of other
things.
This commit is contained in:
PatR
2016-02-03 23:39:24 -08:00
parent d01e45a6cc
commit ca3ccdd5ab
4 changed files with 18 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 end.c $NHDT-Date: 1454116472 2016/01/30 01:14:32 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.113 $ */
/* NetHack 3.6 end.c $NHDT-Date: 1454571522 2016/02/04 07:38:42 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.114 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -182,9 +182,9 @@ NH_abort()
gdb_prio++;
if (gdb_prio > libc_prio) {
NH_panictrace_gdb() || (libc_prio && NH_panictrace_libc());
(void) (NH_panictrace_gdb() || (libc_prio && NH_panictrace_libc()));
} else {
NH_panictrace_libc() || (gdb_prio && NH_panictrace_gdb());
(void) (NH_panictrace_libc() || (gdb_prio && NH_panictrace_gdb()));
}
#else /* VMS */