diff options
author | Benjamin Berg <bberg@redhat.com> | 2020-05-04 14:56:13 +0200 |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2020-05-07 14:22:02 +0000 |
commit | 8d4d56b1f15973ae95047e2b1b5baf82e587f3bc (patch) | |
tree | 508c678317de992e676eca37785a9bd76790ce6d | |
parent | 6e30a1ee455bccd1250cee6d1b92a013937dd71c (diff) |
tests: Annotate a few variables as unused
These solely exist for memory management, but the static analysis
complains.
-rw-r--r-- | tests/test-fpi-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-fpi-device.c b/tests/test-fpi-device.c index ff61849..d2f86e6 100644 --- a/tests/test-fpi-device.c +++ b/tests/test-fpi-device.c @@ -635,7 +635,7 @@ test_driver_enroll_progress (void) { g_autoptr(FpAutoResetClass) dev_class = auto_reset_device_class (); g_autoptr(FpAutoCloseDevice) device = NULL; - g_autoptr(FpPrint) enrolled_print = NULL; + G_GNUC_UNUSED g_autoptr(FpPrint) enrolled_print = NULL; ExpectedEnrollData expected_enroll_data = {0}; FpiDeviceFake *fake_dev; @@ -1355,7 +1355,7 @@ test_driver_identify_report_no_callback (void) g_autoptr(MatchCbData) match_data = g_new0 (MatchCbData, 1); g_autoptr(GPtrArray) prints = g_ptr_array_new_with_free_func (g_object_unref); g_autoptr(FpAutoCloseDevice) device = NULL; - g_autoptr(FpPrint) enrolled_print = NULL; + G_GNUC_UNUSED g_autoptr(FpPrint) enrolled_print = NULL; g_autoptr(FpPrint) print = NULL; g_autoptr(FpPrint) match = NULL; g_autoptr(GError) error = NULL; |