Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15
STALE3750d

[PATCH] wt-status.c: disable those distracting -Wformat-zero-length warnings

From: Samuel Bronson <hidden>
Date: 2016-06-15 22:59:29
Subsystem: the rest · Maintainer: Linus Torvalds

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

Signed-off-by: Samuel Bronson <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help