gbranden pushed a commit to branch master
in repository groff.
commit 7169d58294589d14d390cd981e766913ad348292
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Nov 11 09:04:30 2026 -0600
src/roff/troff/input.cpp: Annotate.
...unreachable statements, using traditional lint(1) notation.
https://man.cat-v.org/unix_7th/1/lint
---
src/roff/troff/input.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 3635d0a7b..03cca7518 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10307,7 +10307,7 @@ int main(int argc, char **argv)
{
printf("GNU troff (groff) version %s\n", Version_string);
exit(EXIT_SUCCESS);
- break;
+ break; // NOTREACHED
}
case 'I':
// Search path for .psbb files
@@ -10416,7 +10416,7 @@ int main(int argc, char **argv)
case CHAR_MAX + 1: // --help
usage(stdout, argv[0]);
exit(EXIT_SUCCESS);
- break;
+ break; // NOTREACHED
case '?':
if (optopt != 0)
error("unrecognized command-line option '%1'", char(optopt));
@@ -10425,13 +10425,13 @@ int main(int argc, char **argv)
argv[(optind - 1)]);
usage(stderr, argv[0]);
exit(2);
- break; // never reached
+ break; // NOTREACHED
case ':':
error("command-line option '%1' requires an argument",
char(optopt));
usage(stderr, argv[0]);
exit(2);
- break; // never reached
+ break; // NOTREACHED
default:
assert(0 == "unhandled case of command-line option");
}
@@ -10520,7 +10520,7 @@ int main(int argc, char **argv)
if (optind >= argc || want_stdin_read_last)
process_input_file("-");
exit_troff();
- return 0; // not reached
+ return 0; // NOTREACHED
}
static void configure_desired_warnings_request() // .warn
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit