diff options
author | Matt Caswell <matt@openssl.org> | 2020-09-10 16:34:17 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-09-13 11:11:57 +0100 |
commit | 225c9660a5a3435d9bcfc9166b9f79f132996249 (patch) | |
tree | 31946bc12bc24f141558a542b79c31a693de2de6 /test/stack_test.c | |
parent | 89b46350a322f85924d1226f7c149e4e068d0264 (diff) | |
download | openssl-225c9660a5a3435d9bcfc9166b9f79f132996249.zip openssl-225c9660a5a3435d9bcfc9166b9f79f132996249.tar.gz openssl-225c9660a5a3435d9bcfc9166b9f79f132996249.tar.bz2 |
Ignore unused return values from some sk_*() macros
Some compilers are very picky about unused return values.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12781)
Diffstat (limited to 'test/stack_test.c')
-rw-r--r-- | test/stack_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |