Skip to content

Commit d4e05fd

Browse files
committed
[libc++] Disables -Wweak-vtables diagnostics.
This is a preparation to use Clang HEAD in the CI.
1 parent 0847c90 commit d4e05fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libcxx/include/__expected/bad_expected_access.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
2727
template <class _Err>
2828
class bad_expected_access;
2929

30+
_LIBCPP_DIAGNOSTIC_PUSH
31+
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wweak-vtables")
3032
template <>
3133
class bad_expected_access<void> : public exception {
3234
protected:
@@ -44,6 +46,7 @@ class bad_expected_access<void> : public exception {
4446
// it adds deployment target restrictions.
4547
_LIBCPP_HIDE_FROM_ABI_VIRTUAL const char* what() const noexcept override { return "bad access to std::expected"; }
4648
};
49+
_LIBCPP_DIAGNOSTIC_POP
4750

4851
template <class _Err>
4952
class bad_expected_access : public bad_expected_access<void> {

0 commit comments

Comments
 (0)