]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.c
silence a bunch of format-zero-length warnings
authorFelipe Contreras <felipe.contreras@gmail.com>
Sun, 4 May 2014 06:12:55 +0000 (01:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 May 2014 18:20:54 +0000 (11:20 -0700)
commit7d7d680221e6aac4210cf3c0be9ab237bc45b781
tree87c63f5fe0e9fb3161292b8ea3db44d8983ee572
parent7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d
silence a bunch of format-zero-length warnings

This can be observed in many versions of gcc and still exists with 4.9.0:

  wt-status.c: In function ‘wt_status_print_unmerged_header’:
  wt-status.c:191:2: warning: zero-length gnu_printf format string [-Wformat-zero-length]
    status_printf_ln(s, c, "");
    ^

The user have long been told to pass -Wno-format-zero-length, but a
patch that avoids warning altogether is not too noisy, so let's do
so.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
wt-status.c