[PATCH] wt-status.c: disable those distracting -Wformat-zero-length warnings
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