BUILD: thread: silence a build warning when threads are disabled
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Mar 2023 09:28:50 +0000 (10:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Mar 2023 09:40:06 +0000 (10:40 +0100)
commit1b536a11e705490fddd188fddf6336ddeea36f58
tree7643e8fd49e357ab6248b0969453459d73341e93
parent0de1e6180a18543ab6913b66f4990b614125bf6a
BUILD: thread: silence a build warning when threads are disabled

When threads are disabled, the compiler complains that we might be
accessing tg->abs[] out of bounds since the array is of size 1. It
cannot know that the condition to do this is never met, and given
that it's not in a fast path, we can make it more obvious.
src/thread.c