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:
Kenneth Moreland 2021-04-26 12:13:13 -06:00
parent 9c54941d2b
commit e3e1a76072

@ -84,7 +84,7 @@
#define VTK_M_DEPRECATED_ATTRIBUTE_SUPPORTED
#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