com php-src: Remove compile warnings: variable ‘obj _cnt’ set but not used [-Wunused-but-set- variable] unused variable ‘last’
[-Wunused-variable] unused variable ‘j’ [-Wunused-variable]: ext/openssl/ openssl.c
| From: | Christopher Jones | Date: | Tue, 20 Aug 2013 00:44:36 +0000 |
| Subject: | com php-src: Remove compile warnings: variable ‘obj _cnt’ set but not used [-Wunused-but-set- variable] unused variable ‘last’ [-Wunused-variable] unused variable ‘j’ [-Wunused-variable]: ext/openssl/ openssl.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73009@lists.php.net to get a copy of this message | ||
Commit: cf7f50748a787affd9306b34ee1ba2c83772aedc
Author: Christopher Jones <sixd@php.net> Mon, 19 Aug 2013 17:44:36 -0700
Parents: 279b4fe614ac8380d6bdea9f9b54a77ec60114db
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cf7f50748a787affd9306b34ee1ba2c83772aedc
Log:
Remove compile warnings:
variable ‘obj_cnt’ set but not used [-Wunused-but-set-variable]
unused variable ‘last’ [-Wunused-variable]
unused variable ‘j’ [-Wunused-variable]
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 353c358..f9493c7 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);