diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-12 16:27:01 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-12 16:27:01 +0900 |
commit | 0f91e2a6ee41e144463ae5686e474445e1053873 (patch) | |
tree | b1303c7249f1e76a5e18537e17d72bf543ded911 /ext/openssl/ossl.c | |
parent | 74731d9406eb80095bdc694b18eaa0cecd2730aa (diff) | |
download | ruby-openssl-0f91e2a6ee41e144463ae5686e474445e1053873.tar.gz |
Suppress cast-function-type warnings
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r-- | ext/openssl/ossl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index cf070ef8..b4b02491 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -21,7 +21,7 @@ * Data Conversion */ #define OSSL_IMPL_ARY2SK(name, type, expected_class, dup) \ -STACK_OF(type) * \ +VALUE \ ossl_##name##_ary2sk0(VALUE ary) \ { \ STACK_OF(type) *sk; \ @@ -43,7 +43,7 @@ ossl_##name##_ary2sk0(VALUE ary) \ x = dup(val); /* NEED TO DUP */ \ sk_##type##_push(sk, x); \ } \ - return sk; \ + return (VALUE)sk; \ } \ \ STACK_OF(type) * \ |