Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2015 11:42:50 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        John-Mark Gurney <jmg@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r286168 - head/sys/net
Message-ID:  <A1E89852-C155-4630-9729-AAD0AC51F999@lists.zabbadoz.net>
In-Reply-To: <201508020015.t720Fr6R018929@repo.freebsd.org>
References:  <201508020015.t720Fr6R018929@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> 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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A1E89852-C155-4630-9729-AAD0AC51F999>