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:
@@ -32,7 +32,7 @@ static boolean isspecmon(struct monst *);
|
||||
static boolean validspecmon(struct monst *, int);
|
||||
static int wiz_force_cham_form(struct monst *);
|
||||
static struct permonst *accept_newcham_form(struct monst *, int);
|
||||
static void kill_eggs(struct obj *);
|
||||
static void kill_eggs(struct obj *) NO_NONNULLS;
|
||||
static void pacify_guard(struct monst *);
|
||||
|
||||
extern const struct shclass shtypes[]; /* defined in shknam.c */
|
||||
|
||||
Reference in New Issue
Block a user