Re: [PATCH] BUG/MINOR: warning: 'need_resend' may be used uninitialized

2017-06-08 Thread Willy Tarreau
On Thu, Jun 08, 2017 at 07:30:39PM +0200, William Lallemand wrote: > The commit 201c07f68 ("MAJOR/REORG: dns: DNS resolution task and > requester queues") introduces a warning during compilation: > > src/dns.c: In function 'dns_resolve_recv': > src/dns.c:487:6: warning: 'need_resend' may be used

[PATCH] BUG/MINOR: warning: ‘need_resend’ may be used uninitialized

2017-06-08 Thread William Lallemand
The commit 201c07f68 ("MAJOR/REORG: dns: DNS resolution task and requester queues") introduces a warning during compilation: src/dns.c: In function ‘dns_resolve_recv’: src/dns.c:487:6: warning: ‘need_resend’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (need_resend) {