From 210ee6eab1dcd7b1b2710dc927943d62330ffde3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 4 May 2024 20:03:39 +0200 Subject: a w --- compat/borrowed-ptr.inl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/borrowed-ptr.inl b/compat/borrowed-ptr.inl index feca62c0..06fe8501 100644 --- a/compat/borrowed-ptr.inl +++ b/compat/borrowed-ptr.inl @@ -1,13 +1,17 @@ #pragma once #include "borrowed-ptr.hpp" +#ifdef __GNUG__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + namespace floormat::detail_borrowed_ptr { #ifdef __GNUG__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #endif - struct control_block_ { void* _ptr; // todo maybe add directly embeddable objects? @@ -15,7 +19,6 @@ struct control_block_ virtual void free_ptr() noexcept = 0; static void decrement(control_block_*& blk) noexcept; }; - #ifdef __GNUG__ #pragma GCC diagnostic pop #endif @@ -207,3 +210,7 @@ template uint32_t bptr::use_count() const noexcept } } // namespace floormat + +#ifdef __GNUG__ +#pragma GCC diagnostic pop +#endif -- cgit v1.2.3