Date: Tue, 24 Mar 2015 17:37:32 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r280449 - stable/10/sys/sys Message-ID: <201503241737.t2OHbWKR092496@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Tue Mar 24 17:37:31 2015 New Revision: 280449 URL: https://svnweb.freebsd.org/changeset/base/280449 Log: MFC r280273; Permit multiple arguments for the nonnull attribute. This is very useful for non-trivial functions and doesn't affect existing uses. Modified: stable/10/sys/sys/cdefs.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/sys/cdefs.h ============================================================================== --- stable/10/sys/sys/cdefs.h Tue Mar 24 17:20:20 2015 (r280448) +++ stable/10/sys/sys/cdefs.h Tue Mar 24 17:37:31 2015 (r280449) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503241737.t2OHbWKR092496>