forked from boostorg/smart_ptr
Suppress weak vtables warnings
This commit is contained in:
@ -36,6 +36,11 @@ namespace boost
|
|||||||
# pragma option push -pc
|
# pragma option push -pc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Wweak-vtables"
|
||||||
|
#endif
|
||||||
|
|
||||||
class bad_weak_ptr: public std::exception
|
class bad_weak_ptr: public std::exception
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -46,6 +51,10 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
|
#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564
|
||||||
# pragma option pop
|
# pragma option pop
|
||||||
#endif
|
#endif
|
||||||
|
@ -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
|
class sp_counted_base
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@ -133,6 +138,10 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
Reference in New Issue
Block a user