aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 16:27:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 16:27:01 +0900
commit0f91e2a6ee41e144463ae5686e474445e1053873 (patch)
treeb1303c7249f1e76a5e18537e17d72bf543ded911 /ext/openssl/ossl.c
parent74731d9406eb80095bdc694b18eaa0cecd2730aa (diff)
downloadruby-openssl-0f91e2a6ee41e144463ae5686e474445e1053873.tar.gz
Suppress cast-function-type warnings
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r--ext/openssl/ossl.c4
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) * \