URL: <https://savannah.gnu.org/bugs/?66473>
Summary: libgroff/font.cpp: warning of type "-Wformat=" Group: GNU roff Submitter: bjarniig Submitted: Fri 22 Nov 2024 12:51:43 AM UTC Category: Core Severity: 3 - Normal Item Group: Warning/Suspicious behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 22 Nov 2024 12:51:43 AM UTC By: Bjarni Ingi Gislason <bjarniig> Subject: libgroff/font.cpp: warning of type "-Wformat=" gcc-14 (Debian 14.2.0-8) 14.2.0 CXX src/libs/libgroff/libgroff_a-font.o ../src/libs/libgroff/font.cpp: In member function 'bool font::load(bool)': ../src/libs/libgroff/font.cpp:1047:36: warning: format '%X' expects argument of type 'unsigned int*', but argument 3 has type 'int*' [-Wformat=] 1047 | int nrange = sscanf(nm, "u%X..u%X", &start_code, &end_code); | ~^ ~~~~~~~~~~~ | | | | | int* | unsigned int* | %X ../src/libs/libgroff/font.cpp:1047:41: warning: format '%X' expects argument of type 'unsigned int*', but argument 4 has type 'int*' [-Wformat=] 1047 | int nrange = sscanf(nm, "u%X..u%X", &start_code, &end_code); | ~^ ~~~~~~~~~ | | | | unsigned int* int* | %X _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66473> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature