diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-04 20:57:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:31:20 +0200 |
commit | b929d0a245219247c81bab7d4d319b5ad9ad58f7 (patch) | |
tree | b3c6dd6ef36706fbbfa9e77c1943d75499d6025d /compat | |
parent | 2ecbbe3ee0f70ba38329cc24bec9df87d5b54e29 (diff) |
bptr: disable msvc warning also
Diffstat (limited to 'compat')
-rw-r--r-- | compat/borrowed-ptr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/borrowed-ptr.cpp b/compat/borrowed-ptr.cpp index c8582bfc..413527cb 100644 --- a/compat/borrowed-ptr.cpp +++ b/compat/borrowed-ptr.cpp @@ -9,6 +9,9 @@ namespace floormat::detail_borrowed_ptr { #elif defined __GNUG__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" +#elif defined _MSC_VER +#pragma warning(push) +#pragma warning(disable : 5205) #endif void control_block_::decrement(control_block_*& blk) noexcept { @@ -27,6 +30,8 @@ void control_block_::decrement(control_block_*& blk) noexcept #pragma clang diagnostic pop #elif defined __GNUG__ #pragma GCC diagnostic pop +#elif defined _MSC_VER +#pragma warning(pop) #endif } // namespace floormat::detail_borrowed_ptr |