Skip to content

Commit 23257fd

Browse files
committed
Fix [-Wunused-variable] [-Wparentheses]
1 parent 4b59480 commit 23257fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/yaf_route_static.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ zval * yaf_route_static_assemble(yaf_route_t *this_ptr, zval *mvc, zval *query T
212212
smart_str_appendl(&tvalue, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
213213

214214
if (IS_ARRAY == Z_TYPE_P(query)) {
215-
uint key_type, key_len;
215+
uint key_len;
216216
char *key;
217217
ulong key_idx;
218218
int start = 0, end = 0;
@@ -281,7 +281,7 @@ PHP_METHOD(yaf_route_static, assemble) {
281281
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|a", &mvc, &query) == FAILURE) {
282282
return;
283283
} else {
284-
if (return_uri = yaf_route_static_assemble(getThis(), mvc, query TSRMLS_CC)) {
284+
if ((return_uri = yaf_route_static_assemble(getThis(), mvc, query TSRMLS_CC))) {
285285
RETURN_ZVAL(return_uri, 0, 1);
286286
}
287287
}

0 commit comments

Comments
 (0)