From: Willy Tarreau Date: Tue, 4 Jun 2019 15:16:29 +0000 (+0200) Subject: BUILD: task: fix a build warning when threads are disabled X-Git-Tag: v2.0-dev6~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5598d171b33a597a97c4536d75ef616a4bb3dcad;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/task.c b/src/task.c index 0ccc7af171..d004a2cdfc 100644 --- a/src/task.c +++ b/src/task.c @@ -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: