Skip to content

fix status_printf_ln calls "zero-length format" warnings

Benoit Pierre git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2status: allow NULL fmt for status_printf/status_vprintf_lnwt-status.c+2 -11 reply
2/2fix status_printf_ln calls "zero-length format" warningsbuiltin/commit.c wt-status.c+11 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
1.9.0