Ignore -Wnonnull new gcc 11 warnings. (#28)

This commit is contained in:
Romain Geissler @ Amadeus
2021-03-03 18:23:14 -08:00
committed by GitHub
parent feb8accc6e
commit affc79e045
2 changed files with 28 additions and 0 deletions
+7
View File
@@ -13,7 +13,14 @@ namespace boost { namespace concepts {
template <class Model>
struct usage_requirements
{
# if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnonnull"
# endif
~usage_requirements() { ((Model*)0)->~Model(); }
# if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
# pragma GCC diagnostic pop
# endif
};
# if BOOST_WORKAROUND(__GNUC__, <= 3)