Commit:    cf7f50748a787affd9306b34ee1ba2c83772aedc
Author:    Christopher Jones <s...@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);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to