Skip to content

Commit 54d4a28

Browse files
committed
Suppress compiler warning "warning: variable ‘length’ set but not used [-Wunused-but-set-variable]"
1 parent 1af111d commit 54d4a28

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/curl/interface.c

-2
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,6 @@ static size_t curl_progress(void *clientp, double dltotal, double dlnow, double
10681068
{
10691069
php_curl *ch = (php_curl *) clientp;
10701070
php_curl_progress *t = ch->handlers->progress;
1071-
int length = -1;
10721071
size_t rval = 0;
10731072

10741073
#if PHP_CURL_DEBUG
@@ -1118,7 +1117,6 @@ static size_t curl_progress(void *clientp, double dltotal, double dlnow, double
11181117
ch->in_callback = 0;
11191118
if (error == FAILURE) {
11201119
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot call the CURLOPT_PROGRESSFUNCTION");
1121-
length = -1;
11221120
} else if (retval_ptr) {
11231121
if (Z_TYPE_P(retval_ptr) != IS_LONG) {
11241122
convert_to_long_ex(&retval_ptr);

0 commit comments

Comments
 (0)