mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Disable deprecation for MSVC 2017
Although technically supported, this version of the visual studio likes to put the warnings where templates are defined (rather than instantiated). That makes it impossible to suppress a warning when, for example, when a deprecated class is legitmately used in an std template to implement other deprecated functionality. To prevent this, disable deprecations on MSVC compilers before 2019. I doubt any developers are using this compiler anywhere but the dashboard, and the warnings should legitimately appear elsewhere.
This commit is contained in:
parent
9c54941d2b
commit
e3e1a76072
@ -84,7 +84,7 @@
|
|||||||
#define VTK_M_DEPRECATED_ATTRIBUTE_SUPPORTED
|
#define VTK_M_DEPRECATED_ATTRIBUTE_SUPPORTED
|
||||||
#endif // __has_cpp_attribute(deprecated)
|
#endif // __has_cpp_attribute(deprecated)
|
||||||
|
|
||||||
#elif defined(VTKM_MSVC) && (_MSC_VER >= 1900)
|
#elif defined(VTKM_MSVC) && (_MSC_VER >= 1920)
|
||||||
|
|
||||||
#define VTK_M_DEPRECATED_ATTRIBUTE_SUPPORTED
|
#define VTK_M_DEPRECATED_ATTRIBUTE_SUPPORTED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user