Suppress weak vtables warnings

This commit is contained in:
Nikita Kniazev
2016-08-31 17:32:09 +03:00
parent e8daeaee1c
commit 70367e848e
2 changed files with 18 additions and 0 deletions

View File

@ -36,6 +36,11 @@ namespace boost
# pragma option push -pc
#endif
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wweak-vtables"
#endif
class bad_weak_ptr: public std::exception
{
public:
@ -46,6 +51,10 @@ public:
}
};
#if defined(__clang__)
# pragma clang diagnostic pop
#endif
#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
# pragma option pop
#endif

View File

@ -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