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

[PATCH 0/2] fix status_printf_ln calls "zero-length format" warnings

From
Benoit Pierre <benoit.pierre@gmail.com>
Date
Mar 10, 2014, 19:27 UTC
Message-ID
<1394479647-22361-1-git-send-email-benoit.pierre@gmail.com>

Those happens with "gcc -Wformat-zero-length". Since passing NULL does not generate a warning (as __attribute__((printf())) does not imply nonull), modify status_printf/status_printf_ln to allow a NULL format and update calls with an empty string.

Benoit Pierre (2):
  status: allow NULL fmt for status_printf/status_vprintf_ln
  fix status_printf_ln calls "zero-length format" warnings
 builtin/commit.c |  2 +-
 wt-status.c      | 23 ++++++++++++-----------
 2 files changed, 13 insertions(+), 12 deletions(-)
-- 
1.9.0
Next: Benoit Pierre
Message 1 of 6 in “fix status_printf_ln calls "zero-length format" warnings”
  1. 0/2 fix status_printf_ln calls "zero-length format" warningsBenoit Pierre, Mar 10, 2014
  2. 1/2 status: allow NULL fmt for status_printf/status_vprintf_lnBenoit Pierre, Mar 10, 2014
  3. Eric SunshineMar 10, 2014
  4. 2/2 fix status_printf_ln calls "zero-length format" warningsBenoit Pierre, Mar 10, 2014
  5. Jeff KingMar 10, 2014
  6. Junio C HamanoMar 11, 2014

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.