From: Christopher Jones Date: Tue, 20 Aug 2013 00:44:36 +0000 (-0700) Subject: Remove compile warnings: X-Git-Tag: php-5.5.6RC1~19^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf7f50748a787affd9306b34ee1ba2c83772aedc;p=php Remove compile warnings: variable ‘obj_cnt’ set but not used [-Wunused-but-set-variable] unused variable ‘last’ [-Wunused-variable] unused variable ‘j’ [-Wunused-variable] --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 353c358199..f9493c73c0 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -576,7 +576,7 @@ static void add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int s { zval **data; zval *subitem, *subentries; - int i, j = -1, last = -1, obj_cnt = 0; + int i, j = -1; char *sname; int nid; X509_NAME_ENTRY * ne; @@ -598,7 +598,6 @@ static void add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int s ne = X509_NAME_get_entry(name, i); obj = X509_NAME_ENTRY_get_object(ne); nid = OBJ_obj2nid(obj); - obj_cnt = 0; if (shortname) { sname = (char *) OBJ_nid2sn(nid);