From cee459d84de7533d0e0a74a37f7fc4c0f2b77bcf Mon Sep 17 00:00:00 2001 From: Frederic Devernay Date: Mon, 30 May 2016 16:09:21 +0200 Subject: gallivm: initialize init_native_targets_once_flag correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Olšák --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 42a53ecb092..805a50be099 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -115,7 +115,7 @@ static LLVMEnsureMultithreaded lLVMEnsureMultithreaded; } -static once_flag init_native_targets_once_flag; +static once_flag init_native_targets_once_flag = ONCE_FLAG_INIT; static void init_native_targets() { -- cgit v1.2.3