]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/difftool.c
difftool: hack around -Wzero-length-format warning
authorJeff King <peff@peff.net>
Wed, 25 Jan 2017 18:35:42 +0000 (13:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Jan 2017 21:28:34 +0000 (13:28 -0800)
commit94d3997ecc09f36d17b9ad4b49c4709885e300f7
treed6bcd4fdbb67fb4876f084adba9c7390c9aed114
parent019678d6b1f83419cdc35e3d455175adce3a379c
difftool: hack around -Wzero-length-format warning

Building with "gcc -Wall" will complain that the format in:

  warning("")

is empty. Which is true, but the warning is over-eager. We
are calling the function for its side effect of printing
"warning:", even with an empty string.

Our DEVELOPER Makefile knob disables the warning, but not
everybody uses it. Let's silence the warning in the code so
that nobody reports it or tries to "fix" it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/difftool.c