BUILD: tools: avoid a build warning on gcc-4.8 in resolve_sym_name()
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:28:32 +0000 (18:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Mar 2025 10:38:00 +0000 (11:38 +0100)
commit97dea76c6510790fede905173f9c5e83b1c1c436
tree06f6842e846941b87be82cdbfcd36ce87a996af3
parent63bb1de4ead20399ae19f286c96c8c73874fea07
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.

(cherry picked from commit ed75148ca0479c7f87e1c149f0b5f0c8dd50eb3c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 19b041e30ad9be9f00588d83c7d36a405f1e9cca)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/tools.c