Suppress Visual C++ deprecated warnings

This commit is contained in:
William S Fulton 2022-07-30 23:43:49 +01:00
commit 4e234c7604

View file

@ -17,6 +17,10 @@
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif
#if defined(_MSC_VER)
#pragma warning(disable : 4996) // For the deprecated attributes in this testcase
#endif
[[noreturn]] void noReturn() { throw; }
[[nodiscard]] bool noDiscard() { return true; }