Skip to content
Snippets Groups Projects
Commit 9d226586 authored by Christian Engwer's avatar Christian Engwer
Browse files

Merge branch 'fix/simd-excessive-compiler-warnings-unknown-pragma' into 'master'

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

See merge request !1015
parents b692bb87 f55b41d9
Branches
Tags
1 merge request!1015[simd] Make compiler ignore (no warning) unknown pragmas
Pipeline #39770 passed
Pipeline: Dune Nightly Test

#39771

    ......@@ -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