]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Boost: apply an upstream patch to silence -Wnonnull warnings 14725/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 25 Jan 2023 03:52:19 +0000 (21:52 -0600)
committerMatthias Maier <tamiko@43-1.org>
Wed, 25 Jan 2023 03:52:19 +0000 (21:52 -0600)
This commit applies boost upstream patch:

  From affc79e04514b4cc4177967ced85f7674f3a6642 Mon Sep 17 00:00:00 2001
  From: "Romain Geissler @ Amadeus" <...>
  Date: Thu, 4 Mar 2021 03:23:14 +0100
  Subject: [PATCH] Ignore -Wnonnull new gcc 11 warnings. (#28)

bundled/boost-1.70.0/include/boost/concept/detail/general.hpp
bundled/boost-1.70.0/include/boost/concept/usage.hpp

index eeb08750f1c483d1fbf9f77332e8a2950b2de1b0..8d7d6f696ed9b4deec82eef55b726935142bd62b 100644 (file)
@@ -28,7 +28,14 @@ namespace detail
 template <class Model>
 struct requirement
 {
+#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
+#   pragma GCC diagnostic push
+#   pragma GCC diagnostic ignored "-Wnonnull"
+#   endif
     static void failed() { ((Model*)0)->~Model(); }
+#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
+#   pragma GCC diagnostic pop
+#   endif
 };
 
 struct failed {};
@@ -36,7 +43,14 @@ struct failed {};
 template <class Model>
 struct requirement<failed ************ Model::************>
 {
+#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
+#   pragma GCC diagnostic push
+#   pragma GCC diagnostic ignored "-Wnonnull"
+#   endif
     static void failed() { ((Model*)0)->~Model(); }
+#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
+#   pragma GCC diagnostic pop
+#   endif
 };
 
 # ifdef BOOST_OLD_CONCEPT_SUPPORT
@@ -44,7 +58,14 @@ struct requirement<failed ************ Model::************>
 template <class Model>
 struct constraint
 {
+#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
+#   pragma GCC diagnostic push
+#   pragma GCC diagnostic ignored "-Wnonnull"
+#   endif
     static void failed() { ((Model*)0)->constraints(); }
+#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
+#   pragma GCC diagnostic pop
+#   endif
 };
   
 template <class Model>
index 373de63a9d5b3c1034de7f44115e8c2a91790e9c..fe88b5f5a7227238839ef6d2af33f948d70bd229 100644 (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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.