svn commit: r358392 - head/share/man/man9
Warner Losh
imp at FreeBSD.org
Thu Feb 27 15:30:14 UTC 2020
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
More information about the svn-src-head
mailing list