Date: Sun, 02 Aug 2015 10:34:33 -0600 From: Ian Lepore <ian@freebsd.org> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: John-Mark Gurney <jmg@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r286168 - head/sys/net Message-ID: <1438533273.50703.2.camel@freebsd.org> In-Reply-To: <A1E89852-C155-4630-9729-AAD0AC51F999@lists.zabbadoz.net> References: <201508020015.t720Fr6R018929@repo.freebsd.org> <A1E89852-C155-4630-9729-AAD0AC51F999@lists.zabbadoz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2015-08-02 at 11:42 +0000, Bjoern A. Zeeb wrote: > > On 02 Aug 2015, at 00:15 , John-Mark Gurney <jmg@FreeBSD.org> wrote: > > -CTASSERT(sizeof(struct sadb_x_policy) == 16); > > +_Static_assert(sizeof(struct sadb_x_policy) == 16, "struct size mismatch"); > > > If this fires, how does it look like? I am assuming the string at the end is the error message? If so and if the assertion is not printed that string should be improved rather than being the same for all checks. > > /bz > It generates a compiler error, so the output is going to contain file-and-line like any other compiler error, as well as the message from the source code. -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1438533273.50703.2.camel>