diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-13 13:45:31 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-05-13 13:45:31 +0900 |
commit | 3bca1b6aadff1faf1c2308cd4eb7dd58948a47d8 (patch) | |
tree | 0472ec379b07bf5d188d27cd0a21fb160d34633e /ext | |
parent | b68dab866724aacc1cbc6b7d5e1f555dec092346 (diff) |
ext/openssl/ossl.h: Remove a variable that is used only in assert
It produces "unused variable" warnings in NDEBUG mode
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 8074afcd79..c20f506bda 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -88,9 +88,8 @@ VALUE ossl_buf2str(char *buf, int len); VALUE ossl_str_new(const char *, long, int *); #define ossl_str_adjust(str, p) \ do{\ - long len = RSTRING_LEN(str);\ long newlen = (long)((p) - (unsigned char*)RSTRING_PTR(str));\ - assert(newlen <= len);\ + assert(newlen <= RSTRING_LEN(str));\ rb_str_set_len((str), newlen);\ }while(0) /* |