mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
clang fixes: tweak last commit
We need to actually ignore "-Wformat-nonliteral" to make clang happy
This commit is contained in:
parent
ddf82a2576
commit
05f36e7ffc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user