From 796e3ae87d71a9b16c8a1139bf840086c3556358 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 3 Sep 2020 22:40:21 +0300 Subject: [PATCH] Prepare for clang 11 --- src/Functions/GatherUtils/Sources.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Functions/GatherUtils/Sources.h b/src/Functions/GatherUtils/Sources.h index 970ecac2291..cebc28a059f 100644 --- a/src/Functions/GatherUtils/Sources.h +++ b/src/Functions/GatherUtils/Sources.h @@ -122,9 +122,13 @@ struct NumericArraySource : public ArraySourceImpl> } }; + +/// 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 @@ -205,7 +209,7 @@ struct ConstSource : public Base } }; -#if !__clang__ +#if !__clang__ || __clang_major__ >= 11 #pragma GCC diagnostic pop #endif