diff options
-rw-r--r-- | src/nxt_http_route.c | 3 | ||||
-rw-r--r-- | src/nxt_router.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c index 5010c561..a8a6b181 100644 --- a/src/nxt_http_route.c +++ b/src/nxt_http_route.c @@ -1050,9 +1050,6 @@ nxt_http_route_pattern_create(nxt_task_t *task, nxt_mp_t *mp, nxt_uint_t n, length; nxt_http_route_pattern_type_t type; - /* Suppress warning about uninitialized variable. */ - length = 0; - type = NXT_HTTP_ROUTE_PATTERN_EXACT; nxt_conf_get_string(cv, &test); diff --git a/src/nxt_router.c b/src/nxt_router.c index d94a34af..4093db8d 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -1614,8 +1614,8 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, next_target = 0; for (i = 0; i < n; i++) { - value = nxt_conf_next_object_member(apcf.targets_value, - &target, &next_target); + (void) nxt_conf_next_object_member(apcf.targets_value, + &target, &next_target); s = nxt_str_dup(app_mp, &targets[i], &target); if (nxt_slow_path(s == NULL)) { |