[libcxx-commits] [libcxx] 0e3a8a6 - [libc++][test] Update _LIBCPP_SUPPRESS_DEPRECATED_(PUSH|POP)

Casey Carter via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 2 08:06:09 PDT 2020


Author: Casey Carter
Date: 2020-04-02T08:05:57-07:00
New Revision: 0e3a8a6f34629c57ea8dc6ad14d5845ebd13d20d

URL: https://github.com/llvm/llvm-project/commit/0e3a8a6f34629c57ea8dc6ad14d5845ebd13d20d
DIFF: https://github.com/llvm/llvm-project/commit/0e3a8a6f34629c57ea8dc6ad14d5845ebd13d20d.diff

LOG: [libc++][test] Update _LIBCPP_SUPPRESS_DEPRECATED_(PUSH|POP)

... in `msvc_stdlib_force_include.h` to also ignore new MSVC warning C5215 "'%s' a function parameter with volatile qualified type is deprecated in C++20". Since we're touching it, also update from non-standard `__pragma(meow)` to standard `_Pragma("meow")`.

Added: 
    

Modified: 
    libcxx/test/support/msvc_stdlib_force_include.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/support/msvc_stdlib_force_include.h b/libcxx/test/support/msvc_stdlib_force_include.h
index 768558efe76f..77d72223b356 100644
--- a/libcxx/test/support/msvc_stdlib_force_include.h
+++ b/libcxx/test/support/msvc_stdlib_force_include.h
@@ -100,10 +100,11 @@ const AssertionDialogAvoider assertion_dialog_avoider{};
     _Pragma("GCC diagnostic pop")
 #else // ^^^ clang / MSVC vvv
 #define _LIBCPP_SUPPRESS_DEPRECATED_PUSH \
-    __pragma(warning(push)) \
-    __pragma(warning(disable : 4996))
+    _Pragma("warning(push)") \
+    _Pragma("warning(disable : 4996)") \
+    _Pragma("warning(disable : 5215)")
 #define _LIBCPP_SUPPRESS_DEPRECATED_POP \
-    __pragma(warning(pop))
+    _Pragma("warning(pop)")
 #endif // __clang__
 
 #endif // SUPPORT_MSVC_STDLIB_FORCE_INCLUDE_H


        


More information about the libcxx-commits mailing list