mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
selectively disable C4275.
This commit is contained in:
parent
7f52fcd18b
commit
756c7e1d11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user