summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2020-05-04 14:57:47 +0200
committerBenjamin Berg <benjamin@sipsolutions.net>2020-05-07 14:22:02 +0000
commit422fc5facf1da12436816ddb430e612df6d6a101 (patch)
tree699c94fecc7fd38345387159cffd329576e13990
parent6d542edf8a521da98294fa6aa6f132391a54c4d4 (diff)
tests: Add unused annotation
The variables exist for memory management but are unused otherwise. Tag them as such.
-rw-r--r--tests/test-fpi-ssm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-fpi-ssm.c b/tests/test-fpi-ssm.c
index 07e28c0..910ec41 100644
--- a/tests/test-fpi-ssm.c
+++ b/tests/test-fpi-ssm.c
@@ -200,7 +200,7 @@ test_ssm_new_full (void)
static void
test_ssm_new_no_handler (void)
{
- g_autoptr(FpiSsm) ssm = NULL;
+ G_GNUC_UNUSED g_autoptr(FpiSsm) ssm = NULL;
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
"*BUG:*handler*");
@@ -211,7 +211,7 @@ test_ssm_new_no_handler (void)
static void
test_ssm_new_wrong_states (void)
{
- g_autoptr(FpiSsm) ssm = NULL;
+ G_GNUC_UNUSED g_autoptr(FpiSsm) ssm = NULL;
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
"*BUG:*nr_states*");