clang fixes: tweak last commit
authorRyan Lortie <desrt@desrt.ca>
Sun, 8 Dec 2013 21:38:47 +0000 (16:38 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sun, 8 Dec 2013 21:38:47 +0000 (16:38 -0500)
We need to actually ignore "-Wformat-nonliteral" to make clang happy

glib/tests/test-printf.c

index 0dba0c0..9330e1e 100644 (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);