diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-10 09:39:12 -0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-02-11 22:46:33 +0100 |
commit | a5f1a585e6552fc99665274c59d40d15467d9287 (patch) | |
tree | 9e9dff351d8d67127cb84e8a472be14bce74f067 /ext | |
parent | c718970e9e48d49c19933f2e4d2cd680094be79f (diff) | |
download | php-git-a5f1a585e6552fc99665274c59d40d15467d9287.tar.gz |
Removed unused variables
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gd/libgd/gd_interpolation.c | 4 | ||||
-rw-r--r-- | ext/intl/msgformat/msgformat_format.c | 1 | ||||
-rw-r--r-- | ext/ldap/ldap.c | 4 | ||||
-rw-r--r-- | ext/snmp/snmp.c | 1 | ||||
-rw-r--r-- | ext/sockets/conversions.c | 1 |
5 files changed, 2 insertions, 9 deletions
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index bf3f4d87b2..75ac4137a7 100644 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@ -945,7 +945,6 @@ static inline LineContribType *_gdContributionsCalc(unsigned int line_size, unsi int windows_size; unsigned int u; LineContribType *res; - int overflow_error = 0; if (scale_d < 1.0) { width_d = filter_width_d / scale_d; @@ -1053,7 +1052,6 @@ static inline void _gdScaleCol (gdImagePtr pSrc, unsigned int src_width, gdImag const int iLeft = contrib->ContribRow[y].Left; const int iRight = contrib->ContribRow[y].Right; int i; - int *row = pRes->tpixels[y]; /* Accumulate each channel */ for (i = iLeft; i <= iRight; i++) { @@ -1796,7 +1794,6 @@ gdImagePtr gdImageRotateNearestNeighbour(gdImagePtr src, const float degrees, co gdImagePtr gdImageRotateGeneric(gdImagePtr src, const float degrees, const int bgColor) { float _angle = ((float) (-degrees / 180.0f) * (float)M_PI); - const int angle_rounded = (int)floor(degrees * 100); const int src_w = gdImageSX(src); const int src_h = gdImageSY(src); const gdFixed f_0_5 = gd_ftofx(0.5f); @@ -1847,7 +1844,6 @@ gdImagePtr gdImageRotateGeneric(gdImagePtr src, const float degrees, const int b if ((n <= 0) || (m <= 0) || (m >= src_h) || (n >= src_w)) { dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; } else if ((n <= 1) || (m <= 1) || (m >= src_h - 1) || (n >= src_w - 1)) { - gdFixed f_127 = gd_itofx(127); register int c = getPixelInterpolated(src, n, m, bgColor); c = c | (( gdTrueColorGetAlpha(c) + ((int)(127* gd_fxtof(f_slop)))) << 24); diff --git a/ext/intl/msgformat/msgformat_format.c b/ext/intl/msgformat/msgformat_format.c index f421991643..e833781c79 100644 --- a/ext/intl/msgformat/msgformat_format.c +++ b/ext/intl/msgformat/msgformat_format.c @@ -34,7 +34,6 @@ /* {{{ */ static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *return_value) { - int count; UChar* formatted = NULL; int32_t formatted_len = 0; diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index c6f69e7207..ea8ec2288a 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -3331,7 +3331,7 @@ PHP_FUNCTION(ldap_parse_result) LDAPControl **lserverctrls = NULL, **ctrlp = NULL; char **lreferrals, **refp; char *lmatcheddn, *lerrmsg; - int rc, lerrcode, myargcount = ZEND_NUM_ARGS(), ber_decode_error_count = -1; + int rc, lerrcode, myargcount = ZEND_NUM_ARGS(); if (zend_parse_parameters(ZEND_NUM_ARGS(), "rrz/|z/z/z/z/", &link, &result, &errcode, &matcheddn, &errmsg, &referrals, &serverctrls) != SUCCESS) { return; @@ -4320,7 +4320,7 @@ PHP_FUNCTION(ldap_exop_whoami) zval *link; struct berval *lauthzid; ldap_linkdata *ld; - int rc, myargcount = ZEND_NUM_ARGS(); + int rc; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &link) == FAILURE) { WRONG_PARAM_COUNT; diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 6e31eddcef..b7e2fbebe7 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -2151,7 +2151,6 @@ static int php_snmp_write_max_oids(php_snmp_object *snmp_object, zval *newval) /* {{{ */ static int php_snmp_write_valueretrieval(php_snmp_object *snmp_object, zval *newval) { - zval ztmp; int ret = SUCCESS; zend_long lval = zval_get_long(newval); diff --git a/ext/sockets/conversions.c b/ext/sockets/conversions.c index 196649d553..291aeb2981 100644 --- a/ext/sockets/conversions.c +++ b/ext/sockets/conversions.c @@ -1077,7 +1077,6 @@ static void from_zval_write_msghdr_buffer_size(const zval *elem, char *msghdr_c, static void from_zval_write_iov_array_aux(zval *elem, unsigned i, void **args, ser_context *ctx) { struct msghdr *msg = args[0]; - size_t len; zend_string *str, *tmp_str; str = zval_get_tmp_string(elem, &tmp_str); |