summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-04 20:03:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:31:19 +0200
commit210ee6eab1dcd7b1b2710dc927943d62330ffde3 (patch)
tree99507cf8fcf74427b1faf4da95e346a5f077efc2
parentc8a6bf30bf7ae43a611f3cacbd77368d02dca575 (diff)
a w
-rw-r--r--compat/borrowed-ptr.inl11
1 files changed, 9 insertions, 2 deletions
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<typename T> uint32_t bptr<T>::use_count() const noexcept
}
} // namespace floormat
+
+#ifdef __GNUG__
+#pragma GCC diagnostic pop
+#endif