From 57c8ae4b9a3b82c63d43ce4afd49739630b45fca Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 28 Jan 2024 01:13:08 -0800 Subject: [PATCH] add NONNULLARG6 Incorporate some inconsequential bits from the testing I've been doing. --- include/decl.h | 2 -- include/tradstdc.h | 2 ++ src/decl.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/decl.h b/include/decl.h index 0121d4ef2..108f5d8a0 100644 --- a/include/decl.h +++ b/include/decl.h @@ -1179,5 +1179,3 @@ extern const struct const_globals cg; extern struct obj hands_obj; #endif /* DECL_H */ - - diff --git a/include/tradstdc.h b/include/tradstdc.h index 7467e16a2..c5a9368fb 100644 --- a/include/tradstdc.h +++ b/include/tradstdc.h @@ -381,6 +381,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */ #define NONNULLARG3 __attribute__((nonnull (3))) #define NONNULLARG4 __attribute__((nonnull (4))) #define NONNULLARG5 __attribute__((nonnull (5))) +#define NONNULLARG6 __attribute__((nonnull (6))) #define NONNULLARG7 __attribute__((nonnull (7))) /* for bhit() */ #define NONNULLARG12 __attribute__((nonnull (1, 2))) #define NONNULLARG23 __attribute__((nonnull (2, 3))) @@ -427,6 +428,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */ #define NONNULLARG3 #define NONNULLARG4 #define NONNULLARG5 +#define NONNULLARG6 #define NONNULLARG7 #define NONNULLARG12 #define NONNULLARG23 diff --git a/src/decl.c b/src/decl.c index 7102e3438..be1826fdf 100644 --- a/src/decl.c +++ b/src/decl.c @@ -1095,4 +1095,5 @@ sa_victual( { return; } + /*decl.c*/