From 5b5ace3353a6dd8c2f6db26fc741331cf337daf9 Mon Sep 17 00:00:00 2001
From: Tobias Leibner <tobias.leibner@googlemail.com>
Date: Thu, 3 Sep 2020 12:22:13 +0200
Subject: [PATCH] [disable_warnings] disable some warnings for the intel
 compiler

---
 dune/xt/common/disable_warnings.hh  | 3 +++
 dune/xt/common/reenable_warnings.hh | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/dune/xt/common/disable_warnings.hh b/dune/xt/common/disable_warnings.hh
index b2f76d08e..eef248a33 100644
--- a/dune/xt/common/disable_warnings.hh
+++ b/dune/xt/common/disable_warnings.hh
@@ -76,4 +76,7 @@
 #  pragma GCC diagnostic ignored "-Wunreachable-code"
 #  pragma GCC diagnostic ignored "-Wunused-local-typedefs"
 #  pragma GCC diagnostic ignored "-Wunused-parameter"
+#elif defined(BOOST_INTEL) && BOOST_INTEL
+#  pragma warning push
+#  pragma warning disable 177 187 654 1011 2259 2282
 #endif
diff --git a/dune/xt/common/reenable_warnings.hh b/dune/xt/common/reenable_warnings.hh
index 8db2790c4..afdba1451 100644
--- a/dune/xt/common/reenable_warnings.hh
+++ b/dune/xt/common/reenable_warnings.hh
@@ -9,6 +9,10 @@
 //   René Fritze     (2011 - 2012, 2015 - 2016, 2018 - 2019)
 //   Tobias Leibner  (2020)
 
-#ifdef __GNUC__
+#include <boost/config.hpp>
+
+#if defined(BOOST_INTEL) && BOOST_INTEL
+#  pragma warning pop
+#else
 #  pragma GCC diagnostic pop
 #endif
-- 
GitLab