Преглед на файлове

[libcxx] [test] Add _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to msvc_stdlib_force_include.hpp.

This macro will instruct MSVC's STL to not warn about features that are deprecated in C++17,
as libcxx tests those features and uses them elsewhere.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@304765 91177308-0d34-0410-b5e6-96231b3b80d8
Stephan T. Lavavej преди 8 години
родител
ревизия
018fbafdf3
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      test/support/msvc_stdlib_force_include.hpp

+ 3 - 0
test/support/msvc_stdlib_force_include.hpp

@@ -81,6 +81,9 @@ const AssertionDialogAvoider assertion_dialog_avoider{};
 
 
     // Silence warnings about raw pointers and other unchecked iterators.
     // Silence warnings about raw pointers and other unchecked iterators.
     #define _SCL_SECURE_NO_WARNINGS
     #define _SCL_SECURE_NO_WARNINGS
+
+    // Silence warnings about features that are deprecated in C++17.
+    #define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
 #endif // _LIBCXX_IN_DEVCRT
 #endif // _LIBCXX_IN_DEVCRT
 
 
 #include <ciso646>
 #include <ciso646>