git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: cb/pedantic-build-for-developers, POSIX-but-not-C99 and -Wno-pedantic-ms-format

From
René Scharfe <l.s.r@web.de>
Date
Sep 22, 2021, 16:58 UTC
Message-ID
<03283614-c589-5e19-4d35-f0a017e69895@web.de>
In-Reply-To
<xmqqee9g8u3n.fsf@gitster.g>
Am 22.09.21 um 18:15 schrieb Junio C Hamano:
Show 10 quoted lines
> René Scharfe <l.s.r@web.de> writes:
>
>> The lack of warnings about the use of that extension in po/ means
>> translated formats are not checked by the compiler at all, right?
>> According to the gettext documentation [2] msgfmt takes care of that
>> when building the translation files, though.
>
> It is not even seen by the compiler at compilation time, right?  _()
> at runtime is merely a function call to map its parameter string to
> another string using what is in .mo (compiled from po/).

Right, and it's up to the program that builds these .mo files (msgfmt) to only accept valid mappings between printf format strings.

René
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 18 in “What's cooking in git.git (Sep 2021, #06; Mon, 20)”
  1. Junio C HamanoSep 21, 2021
  2. Junio C HamanoSep 21, 2021
  3. Taylor BlauSep 21, 2021
  4. cb/pedantic-build-for-developers, POSIX-but-not-C99 and -Wno-pedantic-ms-formatÆvar Arnfjörð Bjarmason, Sep 21, 2021
  5. Carlo ArenasSep 21, 2021
  6. René ScharfeSep 21, 2021
  7. Carlo ArenasSep 21, 2021
  8. Junio C HamanoSep 22, 2021
  9. René ScharfeSep 22, 2021
  10. Junio C HamanoSep 22, 2021
  11. Randall S. BeckerSep 22, 2021
  12. Randall S. BeckerSep 22, 2021
  13. Randall S. BeckerSep 22, 2021
  14. Ævar Arnfjörð BjarmasonSep 21, 2021
  15. Junio C HamanoSep 23, 2021
  16. Ævar Arnfjörð BjarmasonSep 23, 2021
  17. Jeff KingSep 23, 2021
  18. ns/batched-fsync (was Re: What's cooking in git.git (Sep 2021, #06; Mon, 20))Ævar Arnfjörð Bjarmason, Sep 22, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.