URL: <https://savannah.gnu.org/bugs/?66350>
Summary: src/roff/troff/inpuc.cpp: "(or string)" is missing in a warning Group: GNU roff Submitter: bjarniig Submitted: Thu 17 Oct 2024 10:05:01 PM 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: Thu 17 Oct 2024 10:05:01 PM UTC By: Bjarni Ingi Gislason <bjarniig> Subject: src/roff/troff/inpuc.cpp: "(or string)" is missing in a warning From "mandoc_char.7" with "[test-]groff -mandoc -ww -z" shows troff:mandoc_char.7:725: warning: macro 'R' not defined troff:mandoc_char.7:726: warning: macro 'Tm' not defined troff:mandoc_char.7:732: warning: macro 'lq' not defined troff:mandoc_char.7:733: warning: macro 'rq' not defined troff:mandoc_char.7:735: warning: macro 'va' not defined The macros and strings have the same name space. So "name" can be either a name of a macro or a string. To avoid a confusion, text like "(or string)" should be added to the warning. input.cpp: warning(WARN_SPACE, "macro '%1' not defined (possibly missing" input.cpp: warning(WARN_MAC, "macro '%1' not defined", nm.contents()); input.cpp: warning(WARN_MAC, "macro '%1' not defined", nm.contents()); _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66350> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature