gbranden pushed a commit to branch master
in repository groff.

commit 421758838c5e9df78ccb6443756383d278002d46
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Nov 18 13:19:01 2025 -0600

    [troff]: Drop extraneous diagnostic message.
    
    * src/roff/troff/input.cpp (define_class_request): Eliminate extraneous
      diagnostic message.  We already throw a more contextually specific one
      subsequently.
    
    Before:
    $ printf '.class [A] \\[u03A0]-\n' | ./build/test-groff -ww
    troff:<standard input>:1: warning: missing ordinary, special, or indexed 
character
    troff:<standard input>:1: warning: missing end of character range in class 
'[A]'
    
    After:
    $ printf '.class [A] \\[u03A0]-\n' | ./build/test-groff -ww
    troff:<standard input>:1: warning: missing end of character range in class 
'[A]'
---
 ChangeLog                | 6 ++++++
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index eb8529123..a4b2d84ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-11-18  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (define_class_request): Eliminate
+       extraneous diagnostic message.  We already throw a more
+       contextually specific one subsequently.
+
 2025-11-18  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (token::get_char): Recognize
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 2dcbe31ee..a616dbe38 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8542,7 +8542,7 @@ static void define_class_request()
     tok.skip();
     if ((child1 != 0 /* nullptr */) && (tok.ch() == '-')) {
       tok.next();
-      child2 = tok.get_char(true /* required */);
+      child2 = tok.get_char();
       if (0 /* nullptr */ == child2) {
        warning(WARN_MISSING,
                "missing end of character range in class '%1'",

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

Reply via email to