From 05f36e7ffcac0e58c1bf578bc37e1dc129f4b8e3 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sun, 8 Dec 2013 16:38:47 -0500 Subject: [PATCH] clang fixes: tweak last commit We need to actually ignore "-Wformat-nonliteral" to make clang happy --- glib/tests/test-printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/test-printf.c b/glib/tests/test-printf.c index 0dba0c0bc..9330e1ea5 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);