From 4ae6e92631f62863eb06e068a05fb33a66e40724 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 16 Dec 2017 18:36:27 +0100 Subject: [PATCH] Do not launch the worker macro test if clang isn't compiled with block --- tests/test-mworker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-mworker.c b/tests/test-mworker.c index d4bf01e2..99d0ccad 100644 --- a/tests/test-mworker.c +++ b/tests/test-mworker.c @@ -58,7 +58,7 @@ static void test1(void) worker_clear(w_g); } -#if defined(__GNUC__) +#if defined(__GNUC__) && (!defined(__clang__) || WORKER_CLANG_BLOCK) /* The macro version will generate warnings about shadow variables. There is no way to avoid this. */