From a6b358030645abf7f3b0639dd10339de237f5092 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 2 May 2020 12:14:02 -0400 Subject: [PATCH] Suppress warning that tbb/task.h is deprecated --- include/deal.II/base/thread_management.h | 2 ++ source/matrix_free/task_info.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index 73d40394db..f3a1a60667 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -39,7 +39,9 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS # ifdef DEAL_II_USE_MT_POSIX # include # endif +# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 # include +# undef TBB_SUPPRESS_DEPRECATED_MESSAGES # include # endif DEAL_II_ENABLE_EXTRA_DIAGNOSTICS diff --git a/source/matrix_free/task_info.cc b/source/matrix_free/task_info.cc index eee6463e9a..6860e759ae 100644 --- a/source/matrix_free/task_info.cc +++ b/source/matrix_free/task_info.cc @@ -27,7 +27,9 @@ #ifdef DEAL_II_WITH_THREADS # include # include +# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 # include +# undef TBB_SUPPRESS_DEPRECATED_MESSAGES # include #endif -- 2.39.5