#
ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-flifetime-dse=1")
+#
+# Disable all fallthrough warnings:
+#
+ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wimplicit-fallthrough=0")
+
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
INCLUDE_DIRECTORIES(
${THREADS_BUNDLED_INCLUDE_DIRS}
};
void isolate_within_arena( delegate_base& d, intptr_t reserved ) {
+ (void)reserved;
__TBB_ASSERT( reserved == 0, NULL );
// TODO: Decide what to do if the scheduler is not initialized. Is there a use case for it?
generic_scheduler* s = governor::local_scheduler_weak();
//! 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
+ ,
+ nullptr
+#endif
+ }
};
static atomic<do_once_state> cilkrts_load_state;
return s;
}
-bool governor::terminate_scheduler( generic_scheduler* s, const task_scheduler_init* tsi_ptr, bool blocking ) {
+bool governor::terminate_scheduler( generic_scheduler* s, const task_scheduler_init* /*tsi_ptr*/, bool blocking ) {
bool ok = false;
__TBB_ASSERT( is_set(s), "Attempt to terminate non-local scheduler instance" );
if (0 == --(s->my_ref_count)) {
static int (*libiomp_try_restoring_original_mask)();
// Table for mapping to libiomp entry points
static const dynamic_link_descriptor iompLinkTable[] = {
- { "kmp_set_thread_affinity_mask_initial", (pointer_to_handler*)(void*)(&libiomp_try_restoring_original_mask) }
+ { "kmp_set_thread_affinity_mask_initial", (pointer_to_handler*)(void*)(&libiomp_try_restoring_original_mask)
+#if __TBB_WEAK_SYMBOLS_PRESENT
+ ,
+ nullptr
+#endif
+ }
};
#endif