summaryrefslogtreecommitdiff
path: root/boost/smart_ptr/detail/sp_counted_base_clang.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/smart_ptr/detail/sp_counted_base_clang.hpp')
-rw-r--r--boost/smart_ptr/detail/sp_counted_base_clang.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/boost/smart_ptr/detail/sp_counted_base_clang.hpp b/boost/smart_ptr/detail/sp_counted_base_clang.hpp
index c66b985465..75984959d3 100644
--- a/boost/smart_ptr/detail/sp_counted_base_clang.hpp
+++ b/boost/smart_ptr/detail/sp_counted_base_clang.hpp
@@ -58,6 +58,11 @@ inline boost::int_least32_t atomic_conditional_increment( atomic_int_least32_t *
}
}
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wweak-vtables"
+#endif
+
class sp_counted_base
{
private:
@@ -133,6 +138,10 @@ public:
}
};
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
+
} // namespace detail
} // namespace boost