mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
[MINOR] silent gcc for a wrong warning
gcc believes that avoididx may be used uninitialized, which is wrong.
This commit is contained in:
parent
2c6962c3c0
commit
f863ac152a
@ -66,6 +66,7 @@ static inline struct server *get_server_rr_with_conns(struct proxy *px, struct s
|
|||||||
newidx = px->lbprm.map.rr_idx;
|
newidx = px->lbprm.map.rr_idx;
|
||||||
|
|
||||||
avoided = NULL;
|
avoided = NULL;
|
||||||
|
avoididx = 0; /* shut a gcc warning */
|
||||||
do {
|
do {
|
||||||
srv = px->lbprm.map.srv[newidx++];
|
srv = px->lbprm.map.srv[newidx++];
|
||||||
if (!srv->maxconn || srv->cur_sess < srv_dynamic_maxconn(srv)) {
|
if (!srv->maxconn || srv->cur_sess < srv_dynamic_maxconn(srv)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user