gbranden pushed a commit to branch master
in repository groff.
commit c43e000c8e5c14cd48a31e4a42e1f5996a2d05ce
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Apr 21 17:30:54 2026 -0500
[troff] Report category for "output warnings".
* src/roff/troff/input.cpp (do_error): Report warning category governing
diagnostic message even if the type of diagnostic is not `WARNING` but
`OUTPUT_WARNING`.
Continues commit 0220f00c3c, 18 March.
---
ChangeLog | 8 ++++++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d0f51d677..9ad1c1b08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,14 @@
See: <https://savannah.gnu.org/bugs/?68207>
+2026-04-21 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (do_error): Report warning category
+ governing diagnostic message even if the type of diagnostic is
+ not `WARNING` but `OUTPUT_WARNING`.
+
+ Continues commit 0220f00c3c, 18 March.
+
2026-04-21 G. Branden Robinson <[email protected]>
[troff]: Throw warning in category "style" when nilpotent brace
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 1ee1edf62..445be9d88 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10881,7 +10881,7 @@ static void do_error(error_type type,
break;
}
errprint(format, arg1, arg2, arg3);
- if (WARNING == type) {
+ if ((WARNING == type) || (OUTPUT_WARNING == type)) {
const char *category_name = lookup_warning_by_bitset(wc);
assert(category_name != 0 /* nullptr */);
if (category_name != 0 /* nullptr */)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit