Commit 0ba3847
build: Silence C4996 warnings on Visual Studio due to legacy TBB
The containers in TBB versions prior to oneTBB use iterators that
derive from std::iterator. This causes Visual Studio to issue a
STL4015 warning noting that std::iterator is deprecated in C++17.
Since this warning is due to third-party code, we can't do much
about it, so we just silence the warning in our build configuration.
This removes 33 out of 63 warnings.
Note that these warnings show up even though CMake is (AFAICT) using
Visual Studio's /external feature to disable warnings from external
headers. Not sure what's going on there...
(Internal change: 2389464)1 parent 45291c6 commit 0ba3847
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
0 commit comments