From owner-svn-src-head@FreeBSD.ORG Thu Jan 6 08:33:48 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A920A106566B; Thu, 6 Jan 2011 08:33:48 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 996E68FC18; Thu, 6 Jan 2011 08:33:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p068XmhN008301; Thu, 6 Jan 2011 08:33:48 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p068Xmrj008299; Thu, 6 Jan 2011 08:33:48 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201101060833.p068Xmrj008299@svn.freebsd.org> From: Edward Tomasz Napierala Date: Thu, 6 Jan 2011 08:33:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217048 - head/share/man/man9 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 08:33:48 -0000 Author: trasz Date: Thu Jan 6 08:33:48 2011 New Revision: 217048 URL: http://svn.freebsd.org/changeset/base/217048 Log: Get rid of bad advice regarding /* NOTREACHED */. Compilers don't really need it (one can use __dead2 instead), and style(9) was not even consistent with itself in this regard. Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 ============================================================================== --- head/share/man/man9/style.9 Thu Jan 6 08:13:30 2011 (r217047) +++ head/share/man/man9/style.9 Thu Jan 6 08:33:48 2011 (r217048) @@ -470,9 +470,6 @@ statement that cascade should have a .Li FALLTHROUGH comment. Numerical arguments should be checked for accuracy. -Code that cannot be reached should have a -.Li NOTREACHED -comment. .Bd -literal while ((ch = getopt(argc, argv, "abNn:")) != -1) switch (ch) { /* Indent the switch. */ @@ -496,7 +493,6 @@ comment. case '?': default: usage(); - /* NOTREACHED */ } argc -= optind; argv += optind;