From ee8025fbee5cb089aecef21be83704b94dacb814 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 16 Apr 2015 20:50:05 -0500 Subject: [PATCH] Avoid a warning with recently enabled -Wxxx flags. Specifically, we get the following warning: /home/bangerth/p/deal.II/1/dealii/bundled/tbb41_20130401oss/src/tbb/governor.cpp:64:1: warning: missing initializer for member 'tbb::internal::dynamic_link_descriptor::ptr' [-Wmissing-field-initializers] --- bundled/tbb41_20130401oss/src/tbb/governor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundled/tbb41_20130401oss/src/tbb/governor.cpp b/bundled/tbb41_20130401oss/src/tbb/governor.cpp index 0f2b469a97..ef19f4fc7c 100644 --- a/bundled/tbb41_20130401oss/src/tbb/governor.cpp +++ b/bundled/tbb41_20130401oss/src/tbb/governor.cpp @@ -60,7 +60,12 @@ static __cilk_tbb_retcode (*watch_stack_handler)(struct __cilk_tbb_unwatch_thunk //! Table describing how to link the handlers. static const dynamic_link_descriptor CilkLinkTable[] = { - { "__cilkrts_watch_stack", (pointer_to_handler*)(void*)(&watch_stack_handler) } + { "__cilkrts_watch_stack", (pointer_to_handler*)(void*)(&watch_stack_handler) +#if __TBB_WEAK_SYMBOLS_PRESENT + , + NULL +#endif + } }; static atomic cilkrts_load_state; -- 2.39.5