3434
3535#if _MSC_VER==1500 && !__INTEL_COMPILER
3636 // VS2008/VC9 seems to have an issue; limits pull in math.h
37- #pragma warning( push )
38- #pragma warning( disable: 4985 )
37+ // #pragma warning( push )
38+ // #pragma warning( disable: 4985 )
3939#endif
4040#include < limits> /* std::numeric_limits */
4141#if _MSC_VER==1500 && !__INTEL_COMPILER
42- #pragma warning( pop )
42+ // #pragma warning( pop )
4343#endif
4444
4545#if __TBB_INITIALIZER_LISTS_PRESENT
4848
4949#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
5050 // Workaround for overzealous compiler warnings in /Wp64 mode
51- #pragma warning (push)
51+ // #pragma warning (push)
5252#if defined(_Wp64)
53- #pragma warning (disable: 4267)
53+ // #pragma warning (disable: 4267)
5454#endif
55- #pragma warning (disable: 4127) // warning C4127: conditional expression is constant
55+ // #pragma warning (disable: 4127) //warning C4127: conditional expression is constant
5656#endif
5757
5858namespace tbb {
@@ -1175,8 +1175,8 @@ template<typename T, typename A = cache_aligned_allocator<T>
11751175#endif /* __TBB_CPP17_DEDUCTION_GUIDES_PRESENT */
11761176
11771177#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
1178- #pragma warning (push)
1179- #pragma warning (disable: 4701) // potentially uninitialized local variable "old"
1178+ // #pragma warning (push)
1179+ // #pragma warning (disable: 4701) // potentially uninitialized local variable "old"
11801180#endif
11811181template <typename T, class A >
11821182void concurrent_vector<T, A>::shrink_to_fit() {
@@ -1198,7 +1198,7 @@ void concurrent_vector<T, A>::shrink_to_fit() {
11981198 }
11991199}
12001200#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
1201- #pragma warning (pop)
1201+ // #pragma warning (pop)
12021202#endif // warning 4701 is back
12031203
12041204template <typename T, class A >
@@ -1322,8 +1322,8 @@ void concurrent_vector<T, A>::assign_array( void* dst, const void* src, size_typ
13221322
13231323#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
13241324 // Workaround for overzealous compiler warning
1325- #pragma warning (push)
1326- #pragma warning (disable: 4189)
1325+ // #pragma warning (push)
1326+ // #pragma warning (disable: 4189)
13271327#endif
13281328template <typename T, class A >
13291329void concurrent_vector<T, A>::destroy_array( void * begin, size_type n ) {
@@ -1332,7 +1332,7 @@ void concurrent_vector<T, A>::destroy_array( void* begin, size_type n ) {
13321332 array[j-1 ].~T (); // destructors are supposed to not throw any exceptions
13331333}
13341334#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
1335- #pragma warning (pop)
1335+ // #pragma warning (pop)
13361336#endif // warning 4189 is back
13371337
13381338// concurrent_vector's template functions
@@ -1375,7 +1375,7 @@ inline void swap(concurrent_vector<T, A> &a, concurrent_vector<T, A> &b)
13751375} // namespace tbb
13761376
13771377#if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
1378- #pragma warning (pop)
1378+ // #pragma warning (pop)
13791379#endif // warning 4267,4127 are back
13801380
13811381#endif /* __TBB_concurrent_vector_H */
0 commit comments