mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/openssl/ossl.h: Remove a variable that is used only in assert
It produces "unused variable" warnings in NDEBUG mode
This commit is contained in:
parent
b68dab8667
commit
3bca1b6aad
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue