diff --git a/sycl/include/sycl/detail/export.hpp b/sycl/include/sycl/detail/export.hpp index 5c89013b60e67..98b5673a079e0 100644 --- a/sycl/include/sycl/detail/export.hpp +++ b/sycl/include/sycl/detail/export.hpp @@ -12,11 +12,6 @@ #ifndef __SYCL_EXPORT #ifdef _WIN32 -// MSVC discourages export of classes, that use STL class in API. This -// results in a warning, treated as compile error. Silence C4251 to workaround. -#pragma warning(disable : 4251) -#pragma warning(disable : 4275) - #define __SYCL_DLL_LOCAL #if __SYCL_BUILD_SYCL_DLL