From 746bdf144bf2426e029f2bd21fb3914ba89d5877 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 24 Jan 2019 07:44:36 +0100 Subject: [PATCH] Fix warning with CLANG7 --- 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 95495a9d..0e2b8acf 100644 --- a/tests/test-mworker.c +++ b/tests/test-mworker.c @@ -76,7 +76,7 @@ static void test1bis(void) assert (atomic_load(&resetFunc_called) == true || workeri_get_cpu_count() == 1); } -#if defined(__GNUC__) && (!defined(__clang__) || WORKER_USE_CLANG_BLOCK || WORKER_USE_CPP_FUNCTION) +#if defined(__GNUC__) && (!defined(__clang__) || (defined(WORKER_USE_CLANG_BLOCK) && WORKER_USE_CLANG_BLOCK) || (defined(WORKER_USE_CPP_FUNCTION) && WORKER_USE_CPP_FUNCTION)) /* The macro version will generate warnings about shadow variables. There is no way to avoid this. */