gbranden pushed a commit to branch master
in repository groff.

commit 949c05561b2654a4023135f56e34ea7ff1e74b0c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jul 12 04:59:53 2026 -0500

    src/roff/troff/input.cpp: Discard a warning.
    
    * src/roff/troff/input.cpp (remove_character_request): Stop throwing
      warning if character already doesn't exist.
---
 ChangeLog                | 5 +++++
 src/roff/troff/input.cpp | 4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fb411df3e..b6c334db5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-07-12  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (remove_character_request): Stop
+       throwing warning if character already doesn't exist.
+
 2026-07-12  G. Branden Robinson <[email protected]>
 
        [troff]: Add accessor for `token` class's `nm` member variable.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 6b627165e..7e954662a 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -5402,9 +5402,7 @@ static void remove_character_request() // .rchar
   while (read_any_character()) {
     charinfo *ci = tok.get_charinfo(true /* is_mandatory */,
                                    true /* suppress creation */);
-    if (0 /* nullptr */ == ci)
-       warning(WARN_CHAR, "%1 is not defined", tok.description());
-    else {
+    if (ci != 0 /* nullptr */) {
       macro *m = ci->set_macro(0 /* nullptr */);
       if (m != 0 /* nullptr */)
        delete m;

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to