BUILD: config: avoid a build warning on numa_detect_topology() without threads
authorWilly Tarreau <w@1wt.eu>
Fri, 14 May 2021 06:30:46 +0000 (08:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 May 2021 06:30:46 +0000 (08:30 +0200)
commit6bfc10c39287b69e58d5450d62ee7ff7ccbd54af
tree786c7e15c482300b835c0aa26f19791d844d5c80
parent26f42a07793f7f5fa5dfee3421ded68a5c1284d9
BUILD: config: avoid a build warning on numa_detect_topology() without threads

The function is defined when using linux+cpu affinity but is only used
if threads are enabled, so let's add this condition to avoid aa build
warning about an unused function when building with thread disabled.
This came in 2.4-dev17 with commit b56a7c89a ("MEDIUM: cfgparse: detect
numa and set affinity if needed") so no backport is needed.
src/cfgparse.c