summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2011-01-06 08:33:48 +0000
committertrasz <trasz@FreeBSD.org>2011-01-06 08:33:48 +0000
commitcaf16f9aeaa2755210c8613683e0b453c3524aa0 (patch)
tree19982bbdc1972e82caf039d8d076e6b9563d7477 /share
parentbbfe229093d6e05027627a73fb0b1eaf573457c3 (diff)
downloadFreeBSD-src-caf16f9aeaa2755210c8613683e0b453c3524aa0.zip
FreeBSD-src-caf16f9aeaa2755210c8613683e0b453c3524aa0.tar.gz
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.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/style.94
1 files changed, 0 insertions, 4 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index a033f7c..7ceeb17 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -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;
OpenPOWER on IntegriCloud