Skip to content
Snippets Groups Projects
Commit f55b41d9 authored by Timo Koch's avatar Timo Koch
Browse files

[simd] Make compiler ignore (no warning) unknown pragmas

This suppressed the warning for the opm pragma, and all other such warnings. 
parent b692bb87
Branches
Tags
1 merge request!1015[simd] Make compiler ignore (no warning) unknown pragmas
Pipeline #39758 passed with warnings
......@@ -13,16 +13,22 @@
namespace Dune {
# pragma GCC diagnostic push
/*
* silence warnings from GCC about using integer operands on a bool
* (when instantiated for T=bool)
*/
#if __GNUC__ >= 7
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wbool-operation"
# pragma GCC diagnostic ignored "-Wint-in-bool-context"
#endif
/*
* silence warnings about unknown pragmas (e.g. opm simd)
*/
# pragma GCC diagnostic ignored "-Wunknown-pragmas"
/**
* This class specifies a vector-like type deriving from std::array
* for memory management and basic accessibility.
......@@ -585,9 +591,7 @@ namespace Dune {
public std::integral_constant<bool, IsNumber<T>::value>{
};
#if __GNUC__ >= 7
# pragma GCC diagnostic pop
#endif
} //namespace Dune
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment