diff options
author | pfg <pfg@FreeBSD.org> | 2015-03-24 17:37:31 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-03-24 17:37:31 +0000 |
commit | f5cf31bac5259172697ccde44e661519990bc4b4 (patch) | |
tree | dd3e5e91150bc9427a7db4825afa0b5e3c7c9ee2 /sys/sys | |
parent | 109b378db667ffbe17bf557f683da6fadc70f6ad (diff) | |
download | FreeBSD-src-f5cf31bac5259172697ccde44e661519990bc4b4.zip FreeBSD-src-f5cf31bac5259172697ccde44e661519990bc4b4.tar.gz |
MFC r280273;
Permit multiple arguments for the nonnull attribute.
This is very useful for non-trivial functions and doesn't
affect existing uses.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/cdefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index f13dab1..1c67608 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -347,9 +347,9 @@ #endif #if __GNUC_PREREQ__(3, 3) -#define __nonnull(x) __attribute__((__nonnull__(x))) +#define __nonnull(...) __attribute__((__nonnull__(__VA_ARGS__))) #else -#define __nonnull(x) +#define __nonnull(...) #endif #if __GNUC_PREREQ__(3, 4) |