diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-02-14 18:52:28 +0100 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-02-15 00:41:11 +0100 |
commit | a7c2a6289c22624f8b21b6c0e3f27047c4d4113d (patch) | |
tree | 7753500c5289ce82974134a82fcb8402f47ad567 /libcxx/include/exception | |
parent | ac428df47ada2a3d849c74f1fe0796c7ecfad486 (diff) | |
download | llvm-a7c2a6289c22624f8b21b6c0e3f27047c4d4113d.zip llvm-a7c2a6289c22624f8b21b6c0e3f27047c4d4113d.tar.gz llvm-a7c2a6289c22624f8b21b6c0e3f27047c4d4113d.tar.bz2 |
[libc++] Guard warning pragmas
This makes the GCC output even cleaner!
Reviewed By: ldionne, #libc
Spies: mstorsjo, Quuxplusone, Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D119295
Diffstat (limited to 'libcxx/include/exception')
-rw-r--r-- | libcxx/include/exception | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libcxx/include/exception b/libcxx/include/exception index 3772fe3..5460b73e 100644 --- a/libcxx/include/exception +++ b/libcxx/include/exception @@ -189,15 +189,11 @@ make_exception_ptr(_Ep __e) _NOEXCEPT class _LIBCPP_TYPE_VIS exception_ptr { -#if defined(__clang__) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunused-private-field" -#endif +_LIBCPP_DIAGNOSTIC_PUSH +_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wunused-private-field") void* __ptr1_; void* __ptr2_; -#if defined(__clang__) -#pragma clang diagnostic pop -#endif +_LIBCPP_DIAGNOSTIC_POP public: exception_ptr() _NOEXCEPT; exception_ptr(nullptr_t) _NOEXCEPT; |