Date: Fri, 20 Mar 2015 01:07:49 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280273 - head/sys/sys Message-ID: <201503200107.t2K17ne1090994@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503200107.t2K17ne1090994>