fix status_printf_ln calls "zero-length format" warnings
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | status: allow NULL fmt for status_printf/status_vprintf_lnwt-status.c | +2 | 1 reply | |
| 2/2 | fix status_printf_ln calls "zero-length format" warningsbuiltin/ wt-status.c | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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