mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-06 05:22:10 +00: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;
|
||||
|
||||
avoided = NULL;
|
||||
avoididx = 0; /* shut a gcc warning */
|
||||
do {
|
||||
srv = px->lbprm.map.srv[newidx++];
|
||||
if (!srv->maxconn || srv->cur_sess < srv_dynamic_maxconn(srv)) {
|
||||
|
Loading…
Reference in New Issue
Block a user