selectively disable C4275.

This commit is contained in:
Utkarsh Ayachit 2018-02-27 13:42:52 -05:00
parent 7f52fcd18b
commit 756c7e1d11
2 changed files with 10 additions and 3 deletions

@ -95,7 +95,4 @@ elseif (CMAKE_COMPILER_IS_MSVCXX)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
endif()
# disable C4275: non-dll interface base class warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4275")
endif()

@ -34,6 +34,12 @@ VTKM_THIRDPARTY_PRE_INCLUDE
VTKM_THIRDPARTY_POST_INCLUDE
// clang-format on
#ifdef VTKM_MSVC
#pragma warning(push)
// disable C4275: non-dll interface base class warnings
#pragma warning(disable : 4275)
#endif
namespace vtkm
{
namespace cont
@ -76,4 +82,8 @@ private:
}
}
#ifdef VTKM_MSVC
#pragma warning(pop)
#endif
#endif