1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/ossl_asn1.c (decode_eoc): remove unused variables.

Patch by Eric Wong. [Feature #5157] [ruby-core:38798]
* ext/openssl/ossl_asn1.c (ossl_asn1_decode): ditto.
* ext/openssl/ossl_pkey.c (ossl_pkey_new_from_data): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-08-07 13:52:36 +00:00
parent b6c6ce116e
commit 9c760d0aad
3 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,10 @@
Sun Aug 7 22:51:45 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* ext/openssl/ossl_asn1.c (decode_eoc): remove unused variables.
Patch by Eric Wong. [Feature #5157] [ruby-core:38798]
* ext/openssl/ossl_asn1.c (ossl_asn1_decode): ditto.
* ext/openssl/ossl_pkey.c (ossl_pkey_new_from_data): ditto.
Sun Aug 7 22:37:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Sun Aug 7 22:37:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: add -Wunused-variable to default CFLAGS. * configure.in: add -Wunused-variable to default CFLAGS.

View file

@ -467,7 +467,6 @@ decode_time(unsigned char* der, int length)
static VALUE static VALUE
decode_eoc(unsigned char *der, int length) decode_eoc(unsigned char *der, int length)
{ {
VALUE ret;
if (length != 2 || !(der[0] == 0x00 && der[1] == 0x00)) if (length != 2 || !(der[0] == 0x00 && der[1] == 0x00))
ossl_raise(eASN1Error, NULL); ossl_raise(eASN1Error, NULL);
@ -1036,7 +1035,7 @@ ossl_asn1_traverse(VALUE self, VALUE obj)
static VALUE static VALUE
ossl_asn1_decode(VALUE self, VALUE obj) ossl_asn1_decode(VALUE self, VALUE obj)
{ {
VALUE ret, ary; VALUE ret;
unsigned char *p; unsigned char *p;
volatile VALUE tmp; volatile VALUE tmp;
long len, read = 0, offset = 0; long len, read = 0, offset = 0;

View file

@ -101,7 +101,6 @@ ossl_pkey_new_from_file(VALUE filename)
static VALUE static VALUE
ossl_pkey_new_from_data(int argc, VALUE *argv, VALUE self) ossl_pkey_new_from_data(int argc, VALUE *argv, VALUE self)
{ {
FILE *fp;
EVP_PKEY *pkey; EVP_PKEY *pkey;
BIO *bio; BIO *bio;
VALUE data, pass; VALUE data, pass;