Prepare for clang 11

This commit is contained in:
Alexey Milovidov 2020-09-03 22:40:21 +03:00
parent 311e789ad2
commit 796e3ae87d

View File

@ -122,9 +122,13 @@ struct NumericArraySource : public ArraySourceImpl<NumericArraySource<T>>
}
};
/// The method can be virtual or not depending on the template parameter.
#if !__clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#elif __clang_major__ >= 11
#pragma GCC diagnostic ignored "-Wsuggest-destructor-override"
#endif
template <typename Base>
@ -205,7 +209,7 @@ struct ConstSource : public Base
}
};
#if !__clang__
#if !__clang__ || __clang_major__ >= 11
#pragma GCC diagnostic pop
#endif