Skip to content

Commit 0becfa8

Browse files
committed
GCC compiler Werror-warning unused
1 parent cf57ab5 commit 0becfa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngx_http_upstream_check_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3349,7 +3349,7 @@ ngx_http_upstream_check_status_json_format(ngx_buf_t *b,
33493349
static void
33503350
ngx_http_upstream_check_status_prometheus_format(ngx_buf_t *b,
33513351
ngx_http_upstream_check_peers_t *peers, ngx_uint_t flag) {
3352-
ngx_uint_t count, upCount, downCount, i, last;
3352+
ngx_uint_t count, upCount, downCount, i/*, last*/;
33533353
ngx_http_upstream_check_peer_t *peer;
33543354

33553355
peer = peers->peers.elts;
@@ -3399,7 +3399,7 @@ ngx_http_upstream_check_status_prometheus_format(ngx_buf_t *b,
33993399
downCount,
34003400
ngx_http_upstream_check_shm_generation);
34013401

3402-
last = peers->peers.nelts - 1;
3402+
// last = peers->peers.nelts - 1;
34033403

34043404
b->last = ngx_snprintf(b->last, b->end - b->last,
34053405
"# HELP nginx_upstream_server_rise Nginx rise counter\n"

0 commit comments

Comments
 (0)