Commit:    54d4a28003f35020a734b172d263b9e15b38950f
Author:    Christopher Jones <s...@php.net>         Wed, 21 Aug 2013 15:39:14 
-0700
Parents:   1af111dd68fc246fa07dbd6bd8e84a30ce28f6c2
Branches:  PHP-5.4 PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=54d4a28003f35020a734b172d263b9e15b38950f

Log:
Suppress compiler warning "warning: variable ‘length’ set but not used 
[-Wunused-but-set-variable]"

Changed paths:
  M  ext/curl/interface.c


Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index f79d0d5..d122051 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -1068,7 +1068,6 @@ static size_t curl_progress(void *clientp, double 
dltotal, double dlnow, double
 {
        php_curl       *ch = (php_curl *) clientp;
        php_curl_progress  *t  = ch->handlers->progress;
-       int             length = -1;
        size_t  rval = 0;
 
 #if PHP_CURL_DEBUG
@@ -1118,7 +1117,6 @@ static size_t curl_progress(void *clientp, double 
dltotal, double dlnow, double
                        ch->in_callback = 0;
                        if (error == FAILURE) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"Cannot call the CURLOPT_PROGRESSFUNCTION");
-                               length = -1;
                        } else if (retval_ptr) {
                                if (Z_TYPE_P(retval_ptr) != IS_LONG) {
                                        convert_to_long_ex(&retval_ptr);


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

Reply via email to