svn commit: r280273 - head/sys/sys
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Mar 20 01:07:49 UTC 2015
Author: pfg
Date: Fri Mar 20 01:07:48 2015
New Revision: 280273
URL: https://svnweb.freebsd.org/changeset/base/280273
Log:
Permit multiple arguments for the nonnull attribute.
This is very useful for non-trivial functions and doesn't
affect existing uses.
MFC after: 5 days
Modified:
head/sys/sys/cdefs.h
Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h Thu Mar 19 23:13:19 2015 (r280272)
+++ head/sys/sys/cdefs.h Fri Mar 20 01:07:48 2015 (r280273)
@@ -356,9 +356,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)
More information about the svn-src-all
mailing list