Commit 5000193c authored by Philip Withnall's avatar Philip Withnall
Browse files

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

See !1861

.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <pwithnall@endlessos.org>
parent 20c2a053
Pipeline #244678 failed with stages
in 15 minutes and 15 seconds
......@@ -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*");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment