From d4e05fd491c838f658d156bbd53005e235739432 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 17 Mar 2024 18:59:51 +0100 Subject: [PATCH] [libc++] Disables -Wweak-vtables diagnostics. This is a preparation to use Clang HEAD in the CI. --- libcxx/include/__expected/bad_expected_access.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcxx/include/__expected/bad_expected_access.h b/libcxx/include/__expected/bad_expected_access.h index 27f01d9350eea..585b4ec9a053b 100644 --- a/libcxx/include/__expected/bad_expected_access.h +++ b/libcxx/include/__expected/bad_expected_access.h @@ -27,6 +27,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD template class bad_expected_access; +_LIBCPP_DIAGNOSTIC_PUSH +_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wweak-vtables") template <> class bad_expected_access : public exception { protected: @@ -44,6 +46,7 @@ class bad_expected_access : public exception { // it adds deployment target restrictions. _LIBCPP_HIDE_FROM_ABI_VIRTUAL const char* what() const noexcept override { return "bad access to std::expected"; } }; +_LIBCPP_DIAGNOSTIC_POP template class bad_expected_access : public bad_expected_access {