diff options
author | James Prestwood <prestwoj@gmail.com> | 2024-03-05 05:28:07 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-03-11 22:12:07 -0500 |
commit | 4a3fe812a58a8aa67e218840c842cdeddae9d23e (patch) | |
tree | 7f2078b573990715fee86c0c2f3191b71c1bf166 | |
parent | fb9139b5bdc1550d15ad31c90e68fdea334fbb59 (diff) |
unit: assert return of several gvariant-util calls
Caught by clang static analysis, there were several calls where the
return value was unused.
-rw-r--r-- | unit/test-gvariant-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unit/test-gvariant-util.c b/unit/test-gvariant-util.c index 7b2e8602..9a7a5df5 100644 --- a/unit/test-gvariant-util.c +++ b/unit/test-gvariant-util.c @@ -644,6 +644,7 @@ static void test_iter_variant_2(const void *test_data) assert(ret); ret = _gvariant_iter_enter_struct(&variant, &structure); + assert(ret); ret = _gvariant_iter_next_entry_basic(&structure, 's', &s); assert(ret); @@ -1047,6 +1048,7 @@ static void test_iter_header_1(const void *test_data) ret = _gvariant_iter_init(&iter, NULL, "a(yv)", NULL, test->data + 16, u); + assert(ret); ret = _gvariant_iter_enter_array(&iter, &array); assert(ret); @@ -1308,6 +1310,7 @@ static void test_builder_fixed_struct_2(const void *test_data) assert(ret); ret = _gvariant_builder_append_basic(builder, 't', &t); + assert(ret); ret = _gvariant_builder_leave_struct(builder); assert(ret); |