]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Suppress warning that tbb/task.h is deprecated 10015/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 2 May 2020 16:14:02 +0000 (12:14 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 2 May 2020 16:14:02 +0000 (12:14 -0400)
include/deal.II/base/thread_management.h
source/matrix_free/task_info.cc

index 73d40394db87f0f476577f4b26bd622f3e515c57..f3a1a60667c111eb29f0ecf30c0882f0f0165eb9 100644 (file)
@@ -39,7 +39,9 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #    ifdef DEAL_II_USE_MT_POSIX
 #      include <pthread.h>
 #    endif
+#    define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
 #    include <tbb/task.h>
+#    undef TBB_SUPPRESS_DEPRECATED_MESSAGES
 #    include <tbb/tbb_stddef.h>
 #  endif
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
index eee6463e9abf6103c6666ab289de36a11b8897d1..6860e759aeb26e15134d0cbbfa646200ddc1dccf 100644 (file)
@@ -27,7 +27,9 @@
 #ifdef DEAL_II_WITH_THREADS
 #  include <tbb/blocked_range.h>
 #  include <tbb/parallel_for.h>
+#  define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
 #  include <tbb/task.h>
+#  undef TBB_SUPPRESS_DEPRECATED_MESSAGES
 #  include <tbb/task_scheduler_init.h>
 #endif
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.