From: Daniel Arndt Date: Sun, 28 Jun 2020 15:03:09 +0000 (-0400) Subject: Suppress TBB deprecation warnings X-Git-Tag: v9.3.0-rc1~1346^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10624%2Fhead;p=dealii.git Suppress TBB deprecation warnings --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index db6b33f397..583ff192c0 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -64,12 +64,13 @@ #cmakedefine DEAL_II_WITH_UMFPACK #cmakedefine DEAL_II_WITH_ZLIB +#ifdef DEAL_II_WITH_TBB /* * Backward compatibility setting: * FIXME: Update once transition to taskflow is complete */ -#ifdef DEAL_II_WITH_TBB #define DEAL_II_WITH_THREADS +#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 #endif /*********************************************************************** diff --git a/source/base/multithread_info.cc b/source/base/multithread_info.cc index d2d4628980..9947d40197 100644 --- a/source/base/multithread_info.cc +++ b/source/base/multithread_info.cc @@ -21,9 +21,7 @@ #include #ifdef DEAL_II_WITH_TBB -# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 # include -# undef TBB_SUPPRESS_DEPRECATED_MESSAGES #endif diff --git a/source/matrix_free/task_info.cc b/source/matrix_free/task_info.cc index 0f352297e4..c071c9dc76 100644 --- a/source/matrix_free/task_info.cc +++ b/source/matrix_free/task_info.cc @@ -27,10 +27,8 @@ #ifdef DEAL_II_WITH_TBB # include # include -# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 # include # include -# undef TBB_SUPPRESS_DEPRECATED_MESSAGES #endif #include diff --git a/tests/quick_tests/tbb.cc b/tests/quick_tests/tbb.cc index 4b21499962..5791dc14d9 100644 --- a/tests/quick_tests/tbb.cc +++ b/tests/quick_tests/tbb.cc @@ -18,9 +18,7 @@ #include #include -#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 #include -#undef TBB_SUPPRESS_DEPRECATED_MESSAGES #include