I see this warning still in g++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-2) with tbb-2020.3-9.fc35.x86_64
In file included from /usr/include/c++/12/pstl/parallel_backend_tbb.h:26, from /usr/include/c++/12/pstl/parallel_backend.h:20, from /usr/include/c++/12/pstl/algorithm_impl.h:22, from /usr/include/c++/12/pstl/glue_execution_defs.h:50, from /usr/include/c++/12/execution:32, from 4.cpp:8:
/usr/include/tbb/task.h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’
21 | #pragma message("TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
I see this warning still in g++ (GCC) 12.2.1 20220819 (Red Hat 12.2.1-2) with tbb-2020. 3-9.fc35. x86_64
In file included from /usr/include/ c++/12/ pstl/parallel_ backend_ tbb.h:26,
from /usr/include/ c++/12/ pstl/parallel_ backend. h:20,
from /usr/include/ c++/12/ pstl/algorithm_ impl.h: 22,
from /usr/include/ c++/12/ pstl/glue_ execution_ defs.h: 50,
from /usr/include/ c++/12/ execution: 32,
from 4.cpp:8: tbb/task. h:21:139: note: ‘#pragma message: TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.’
/usr/include/
21 | #pragma message("TBB Warning: tbb/task.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")