From: Daniel Arndt Date: Sat, 2 May 2020 16:14:02 +0000 (-0400) Subject: Suppress warning that tbb/task.h is deprecated X-Git-Tag: v9.2.0-rc1~142^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b358030645abf7f3b0639dd10339de237f5092;p=dealii.git Suppress warning that tbb/task.h is deprecated --- 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