tests: Ignore -Wformat-nonliteral warning in new GError tests

See !1861.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-01-07 15:47:59 +00:00
parent 20c2a0539c
commit 5000193cf3

View File

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