]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: task: fix a build warning when threads are disabled
authorWilly Tarreau <w@1wt.eu>
Tue, 4 Jun 2019 15:16:29 +0000 (17:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 4 Jun 2019 15:18:40 +0000 (17:18 +0200)
commit5598d171b33a597a97c4536d75ef616a4bb3dcad
tree0caf19ea01e28e9ca43954eceb1291147978cdef
parent4b7531f48b5aa66d11fcee2836c201644bfb6a71
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.
src/task.c