From 75cb392fd53364bb18fa47929159ba71312740bd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 8 Jan 2014 13:06:02 +0100 Subject: [PATCH] Fix [-Wunused-variable] [-Wparentheses] --- routes/yaf_route_simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/yaf_route_simple.c b/routes/yaf_route_simple.c index 91967583..87cdb685 100644 --- a/routes/yaf_route_simple.c +++ b/routes/yaf_route_simple.c @@ -151,7 +151,7 @@ zval * yaf_route_simple_assemble(yaf_route_t *this_ptr, zval *mvc, zval *query T smart_str_appendl(&tvalue, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); if (IS_ARRAY == Z_TYPE_P(query)) { - uint key_type, key_len; + uint key_len; char *key; ulong key_idx; @@ -212,7 +212,7 @@ PHP_METHOD(yaf_route_simple, assemble) { if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|a", &mvc, &query) == FAILURE) { return; } else { - if (return_uri = yaf_route_simple_assemble(getThis(), mvc, query TSRMLS_CC)) { + if ((return_uri = yaf_route_simple_assemble(getThis(), mvc, query TSRMLS_CC))) { RETURN_ZVAL(return_uri, 0, 1); } }