Suppress Visual C++ deprecated warnings
This commit is contained in:
parent
ea3570ddb1
commit
4e234c7604
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,10 @@
|
||||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable : 4996) // For the deprecated attributes in this testcase
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
[[noreturn]] void noReturn() { throw; }
|
[[noreturn]] void noReturn() { throw; }
|
||||||
[[nodiscard]] bool noDiscard() { return true; }
|
[[nodiscard]] bool noDiscard() { return true; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue