mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
tests: Ignore -Wformat-nonliteral warning in new GError tests
See !1861. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
20c2a0539c
commit
5000193cf3
@ -121,6 +121,9 @@ test_new_valist_invalid_va (gpointer dummy,
|
||||
|
||||
va_start (ap, dummy);
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
|
||||
g_test_expect_message (G_LOG_DOMAIN,
|
||||
G_LOG_LEVEL_WARNING,
|
||||
"*g_error_new_valist: runtime check failed*");
|
||||
@ -128,6 +131,8 @@ test_new_valist_invalid_va (gpointer dummy,
|
||||
g_test_assert_expected_messages ();
|
||||
g_assert_nonnull (error);
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
g_test_expect_message (G_LOG_DOMAIN,
|
||||
G_LOG_LEVEL_WARNING,
|
||||
"*g_error_copy: runtime check failed*");
|
||||
|
Loading…
Reference in New Issue
Block a user