functions passed a chain explicitly NO_NONNULLS
Some functions are passed an obj or monst chain, and the callers typically don't check them against 0, so mark them explicitly as NO_NONNULLS (NO_NONNULLS expands to nothing, but it flags that some null arg analysis has been done)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define MAGIC_COOKIE 1000
|
||||
|
||||
static int zaptype(int);
|
||||
static void probe_objchain(struct obj *);
|
||||
static void probe_objchain(struct obj *) NO_NONNULLS;
|
||||
static boolean zombie_can_dig(coordxy x, coordxy y);
|
||||
static void polyuse(struct obj *, int, int);
|
||||
static void create_polymon(struct obj *, int);
|
||||
|
||||
Reference in New Issue
Block a user