Date: Thu, 27 Feb 2020 15:30:13 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r358392 - head/share/man/man9 Message-ID: <202002271530.01RFUDJA087174@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu Feb 27 15:30:13 2020 New Revision: 358392 URL: https://svnweb.freebsd.org/changeset/base/358392 Log: _Static_assert is to be preferred to CTASSERT. Document the existing prefernce that _Static_assert be used in preference to the old CTASSERT we used to use for compile time assertions. Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 ============================================================================== --- head/share/man/man9/style.9 Thu Feb 27 15:25:31 2020 (r358391) +++ head/share/man/man9/style.9 Thu Feb 27 15:30:13 2020 (r358392) @@ -25,7 +25,7 @@ .\" From: @(#)style 1.14 (Berkeley) 4/28/95 .\" $FreeBSD$ .\" -.Dd December 13, 2019 +.Dd January 10, 2020 .Dt STYLE 9 .Os .Sh NAME @@ -893,6 +893,11 @@ Whenever possible, code should be run through a code c (e.g., various static analyzers or .Nm cc Fl Wall ) and produce minimal warnings. +.Pp +New code should use +.Fn _Static_assert +instead of the older +.Fn CTASSERT . .Sh FILES .Bl -tag -width indent .It Pa /usr/src/tools/tools/editing/freebsd.el
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002271530.01RFUDJA087174>