BUILD: task: fix build at -O0 with threads disabled
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 08:59:50 +0000 (09:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 09:01:01 +0000 (10:01 +0100)
commitb7e0c633e89fabf04966f4ac14d5902d96b8c7a6
tree649b2d642e40b920715f20010a1db57874981367
parent56c176a780f1739eda64c41c72a6de3a36bc822f
BUILD: task: fix build at -O0 with threads disabled

grq_total was incremented when picking tasks from the global run queue,
but this variable was not defined with threads disabled, and the code
was optimized away at -O2. No backport is needed.
src/task.c