GNU gettext - Bugs: bug #64384, *printf() replacements break...
You are not allowed to post comments on this tracker with your current authentication level.
bug #64384: *printf() replacements break -Wformat
| Submitter: | Pierre Ossman <cendossm> | ||
| Submitted: | Wed 05 Jul 2023 02:21:09 PM UTC | ||
| Category: | Programmer interface | Severity: | 3 - Normal |
| Item Group: | None | Status: | Fixed |
| Privacy: | Public | Assigned to: | haible |
| Open/Closed: | Closed | ||
|
Thu 14 Sep 2023 02:13:11 PM UTC, comment #1: |
Bruno Haible <haible> |
|
Wed 05 Jul 2023 02:21:09 PM UTC, original submission:
If the replacements *printf() functions (e.g. libintl_printf()) are active, then gcc correctly deduces that those are not the same as the standard *printf() functions. As such, it doesn't apply the standard checks that are enabled by -Wformat.
|
Pierre Ossman <cendossm> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2023-09-14 | haible | Category | Build | Programmer interface | |
| Status | None | Fixed | |||
| Assigned to | None | haible | |||
| Open/Closed | Open | Closed |
Powered by Savane 3.12.
Corresponding source code

Thanks for the report and suggestion.
Implemented through https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=a36d1168bb8a3950982ad7b13e72c86c7e4458ca
Test case:
Compilation on mingw:
Before:
After: