mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
clang fixes: tweak last commit
We need to actually ignore "-Wformat-nonliteral" to make clang happy
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user