From 225c9660a5a3435d9bcfc9166b9f79f132996249 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 10 Sep 2020 16:34:17 +0100 Subject: Ignore unused return values from some sk_*() macros Some compilers are very picky about unused return values. Reviewed-by: Richard Levitte Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/12781) --- test/stack_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/stack_test.c') diff --git a/test/stack_test.c b/test/stack_test.c index 1f4cb1c..3aa0b08 100644 --- a/test/stack_test.c +++ b/test/stack_test.c @@ -131,7 +131,7 @@ static int test_int_stack(int reserve) /* sorting */ if (!TEST_false(sk_sint_is_sorted(s))) goto end; - sk_sint_set_cmp_func(s, &int_compare); + (void)sk_sint_set_cmp_func(s, &int_compare); sk_sint_sort(s); if (!TEST_true(sk_sint_is_sorted(s))) goto end; @@ -237,7 +237,7 @@ static int test_uchar_stack(int reserve) goto end; /* set */ - sk_uchar_set(r, 1, v + 1); + (void)sk_uchar_set(r, 1, v + 1); for (i = 0; i < 2; i++) if (!TEST_ptr_eq(sk_uchar_value(r, i), v + i)) { TEST_info("uchar set %d", i); -- cgit v1.1