mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUILD: task: fix a build warning when threads are disabled
The __decl_hathreads() macro will leave a lone semi-colon making the end of variables declarations, resulting in a warning if threads are disabled. Let's simply swap it with the last variable. Thanks to Ilya Shipitsin for reporting this issue. No backport is needed.
This commit is contained in:
parent
4b7531f48b
commit
5598d171b3
1 changed files with 1 additions and 1 deletions
|
|
@ -161,8 +161,8 @@ int wake_expired_tasks()
|
|||
{
|
||||
struct task *task;
|
||||
struct eb32_node *eb;
|
||||
__decl_hathreads(int key);
|
||||
int ret = TICK_ETERNITY;
|
||||
__decl_hathreads(int key);
|
||||
|
||||
while (1) {
|
||||
lookup_next_local:
|
||||
|
|
|
|||
Loading…
Reference in a new issue