clang fixes: tweak last commit

We need to actually ignore "-Wformat-nonliteral" to make clang happy
This commit is contained in:
Ryan Lortie 2013-12-08 16:38:47 -05:00
parent ddf82a2576
commit 05f36e7ffc

View File

@ -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);