From: Arnaud Giersch Date: Fri, 8 Jun 2018 20:35:45 +0000 (+0200) Subject: Clang-6.0 wants initialization. X-Git-Tag: v3.20~126 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6f1b0ef8689a9f9f47c12ea61b6aef187a8b6192?ds=sidebyside Clang-6.0 wants initialization. --- diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index 91843867f1..2b7be09f90 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -140,7 +140,7 @@ inline void BoostContext::swap(BoostContext* from, BoostContext* to) boost::context::jump_fcontext(&from->fc_, to->fc_, reinterpret_cast(to)); #else BoostContext* ctx[2] = {from, to}; - void* fake_stack; + void* fake_stack = nullptr; ASAN_START_SWITCH(from->asan_stop_ ? nullptr : &fake_stack, to->asan_stack_, to->asan_stack_size_); boost::context::detail::transfer_t arg = boost::context::detail::jump_fcontext(to->fc_, ctx); ASAN_FINISH_SWITCH(fake_stack, &static_cast(arg.data)[0]->asan_stack_,