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:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 lint.h $NHDT-Date: 1449269910 2015/12/04 22:58:30 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.3 $ */
|
||||
/* NetHack 3.6 lint.h $NHDT-Date: 1454571508 2016/02/04 07:38:28 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.4 $ */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
/*
|
||||
@@ -22,7 +22,7 @@
|
||||
/* force an unused function argument to become used in an arbitrary
|
||||
manner in order to suppress warning about unused function arguments;
|
||||
viable for scalar and pointer arguments */
|
||||
#define nhUse(arg) nhUse_dummy += (unsigned) arg;
|
||||
#define nhUse(arg) nhUse_dummy += (unsigned) !(arg)
|
||||
extern unsigned nhUse_dummy;
|
||||
#else
|
||||
#define nhUse(arg) /*empty*/
|
||||
|
||||
Reference in New Issue
Block a user