BUILD: tools: avoid a build warning on gcc-4.8 in resolve_sym_name()
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.
This commit is contained in:
parent
4e09789644
commit
ed75148ca0
@ -5553,7 +5553,7 @@ const void *resolve_sym_name(struct buffer *buf, const char *pfx, const void *ad
|
|||||||
__decl_thread_var(static HA_SPINLOCK_T dladdr_lock);
|
__decl_thread_var(static HA_SPINLOCK_T dladdr_lock);
|
||||||
int isolated;
|
int isolated;
|
||||||
Dl_info dli;
|
Dl_info dli;
|
||||||
size_t size;
|
size_t size = 0;
|
||||||
const char *fname, *p;
|
const char *fname, *p;
|
||||||
#endif
|
#endif
|
||||||
size_t dist, best_dist;
|
size_t dist, best_dist;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user