mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
tests: Add some assertions to avoid unused variable warnings on Clang
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
99a325356d
commit
37a3da891b
@ -180,6 +180,7 @@ test_g_main_context_pusher (void)
|
|||||||
if (TRUE)
|
if (TRUE)
|
||||||
{
|
{
|
||||||
g_autoptr(GMainContextPusher) val = g_main_context_pusher_new (context);
|
g_autoptr(GMainContextPusher) val = g_main_context_pusher_new (context);
|
||||||
|
g_assert_nonnull (val);
|
||||||
|
|
||||||
/* Check it’s now the thread-default main context */
|
/* Check it’s now the thread-default main context */
|
||||||
g_assert_true (g_main_context_get_thread_default () == context);
|
g_assert_true (g_main_context_get_thread_default () == context);
|
||||||
|
@ -77,6 +77,7 @@ test_autoptr (void)
|
|||||||
|
|
||||||
{
|
{
|
||||||
g_autoptr (TestAutoCleanup) tac = tac_ptr;
|
g_autoptr (TestAutoCleanup) tac = tac_ptr;
|
||||||
|
g_assert_nonnull (tac);
|
||||||
}
|
}
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
g_assert_null (tac_ptr);
|
g_assert_null (tac_ptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user