[libcxx-commits] [libcxx] r358782 - [libc++] [test] Silence C++20 deprecation warnings in the MSVC STL

Casey Carter via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 19 13:39:41 PDT 2019


Author: caseycarter
Date: Fri Apr 19 13:39:41 2019
New Revision: 358782

URL: http://llvm.org/viewvc/llvm-project?rev=358782&view=rev
Log:
[libc++] [test] Silence C++20 deprecation warnings in the MSVC STL

... when including msvc_stdlib_force_include.hpp.

Modified:
    libcxx/trunk/test/support/msvc_stdlib_force_include.hpp

Modified: libcxx/trunk/test/support/msvc_stdlib_force_include.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/msvc_stdlib_force_include.hpp?rev=358782&r1=358781&r2=358782&view=diff
==============================================================================
--- libcxx/trunk/test/support/msvc_stdlib_force_include.hpp (original)
+++ libcxx/trunk/test/support/msvc_stdlib_force_include.hpp Fri Apr 19 13:39:41 2019
@@ -72,8 +72,9 @@ const AssertionDialogAvoider assertion_d
     // atomic_is_lock_free.pass.cpp needs this VS 2015 Update 2 fix.
     #define _ENABLE_ATOMIC_ALIGNMENT_FIX
 
-    // Silence warnings about features that are deprecated in C++17.
+    // Silence warnings about features that are deprecated in C++17 and C++20.
     #define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
+    #define _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS
 #endif // _LIBCXX_IN_DEVCRT
 
 #include <ciso646>




More information about the libcxx-commits mailing list