[glib] clang fixes: tweak last commit



commit 05f36e7ffcac0e58c1bf578bc37e1dc129f4b8e3
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Dec 8 16:38:47 2013 -0500

    clang fixes: tweak last commit
    
    We need to actually ignore "-Wformat-nonliteral" to make clang happy

 glib/tests/test-printf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/test-printf.c b/glib/tests/test-printf.c
index 0dba0c0..9330e1e 100644
--- a/glib/tests/test-printf.c
+++ b/glib/tests/test-printf.c
@@ -189,7 +189,7 @@ test_d (void)
    * those rules right. So we fool gcc into not warning.
    */
 #pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wformat"
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
   fmt = "% +d";
   res = g_snprintf (buf, 128, fmt, 5);
   g_assert_cmpint (res, ==, 2);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]