Update of bug #66473 (group groff):

                  Status:                    None => In Progress
             Assigned to:                    None => gbranden

    _______________________________________________________

Follow-up Comment #1:

Thanks for the report.

I can't reproduce this with `-Wformat=2`, but I'm on an old GCC (10.2.1).
Clang 19.1.3 on my ARM tablet didn't whine, either, but I'm only using stock
warnings on that.

But it seems pretty straightforward.  Does the following patch work for you?


diff --git a/src/libs/libgroff/font.cpp b/src/libs/libgroff/font.cpp
index 27c213209..ef98e01e9 100644
--- a/src/libs/libgroff/font.cpp
+++ b/src/libs/libgroff/font.cpp
@@ -1042,8 +1042,8 @@ bool font::load(bool load_header_only)
          directive = nm;
          break;
        }
-       int start_code = 0;
-       int end_code = 0;
+       unsigned int start_code = 0;
+       unsigned int end_code = 0;
        int nrange = sscanf(nm, "u%X..u%X", &start_code, &end_code);
        // TODO: Check for backwards range: end_code < start_code.
        if (2 == nrange) {




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66473>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to