git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wt-status.c: disable those distracting -Wformat-zero-length warnings
@ 2013-12-20 15:45 Samuel Bronson
  2013-12-21  9:42 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Bronson @ 2013-12-20 15:45 UTC (permalink / raw)
  To: git; +Cc: Samuel Bronson

These warnings don't really seem to make much sense for this file.

Signed-off-by: Samuel Bronson <naesten@gmail.com>
---
 wt-status.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/wt-status.c b/wt-status.c
index 4e55810..542cc65 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -17,6 +17,11 @@
 #include "strbuf.h"
 #include "utf8.h"
 
+/* We have good reasons for using zero-length format strings, and
+ * there's unfortunately no way to turn this off on a per-function
+ * basis ... */
+#pragma GCC diagnostic ignored "-Wformat-zero-length"
+
 static char cut_line[] =
 "------------------------ >8 ------------------------\n";
 
-- 
1.8.4.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-21 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 15:45 [PATCH] wt-status.c: disable those distracting -Wformat-zero-length warnings Samuel Bronson
2013-12-21  9:42 ` Jeff King
2013-12-21 20:09   ` Samuel Bronson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).