git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Bronson <naesten@gmail.com>
To: git@vger.kernel.org
Cc: Samuel Bronson <naesten@gmail.com>
Subject: [PATCH] wt-status.c: disable those distracting -Wformat-zero-length warnings
Date: Fri, 20 Dec 2013 10:45:01 -0500	[thread overview]
Message-ID: <1387554301-23901-1-git-send-email-naesten@gmail.com> (raw)

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

             reply	other threads:[~2013-12-20 15:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 15:45 Samuel Bronson [this message]
2013-12-21  9:42 ` [PATCH] wt-status.c: disable those distracting -Wformat-zero-length warnings Jeff King
2013-12-21 20:09   ` Samuel Bronson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387554301-23901-1-git-send-email-naesten@gmail.com \
    --to=naesten@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).