svn commit: r286168 - head/sys/net
Ian Lepore
ian at freebsd.org
Sun Aug 2 16:34:43 UTC 2015
On Sun, 2015-08-02 at 11:42 +0000, Bjoern A. Zeeb wrote:
> > On 02 Aug 2015, at 00:15 , John-Mark Gurney <jmg at 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
More information about the svn-src-all
mailing list