A build warning is emitted with gcc-4.8 in tools.c since commit
e920d73f59 ("MINOR: tools: improve symbol resolution without dl_addr")
because the compiler doesn't see that <size> is necessarily initialized.
Let's just preset it.
(cherry picked from commit
ed75148ca0479c7f87e1c149f0b5f0c8dd50eb3c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
__decl_thread_var(static HA_SPINLOCK_T dladdr_lock);
int isolated;
Dl_info dli;
- size_t size;
+ size_t size = 0;
const char *fname, *p;
#endif
size_t dist, best_dist;