diff options
author | Christopher Jones <sixd@php.net> | 2013-08-21 15:39:14 -0700 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2013-08-21 15:39:14 -0700 |
commit | 54d4a28003f35020a734b172d263b9e15b38950f (patch) | |
tree | 7833c3922a74447e7494deba5717129789380322 | |
parent | 1af111dd68fc246fa07dbd6bd8e84a30ce28f6c2 (diff) | |
download | php-git-54d4a28003f35020a734b172d263b9e15b38950f.tar.gz |
Suppress compiler warning "warning: variable ‘length’ set but not used [-Wunused-but-set-variable]"
-rw-r--r-- | ext/curl/interface.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index f79d0d54c2..d122051ade 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); |