From c9ff5d1c0a0e253b0557c80dab9c2cf838716fbd Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 11 Oct 2024 15:28:51 -0700 Subject: [PATCH] nest pragma --- Analysis/src/Differ.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Analysis/src/Differ.cpp b/Analysis/src/Differ.cpp index b5ca1fa9e..f4fe59360 100644 --- a/Analysis/src/Differ.cpp +++ b/Analysis/src/Differ.cpp @@ -947,12 +947,16 @@ std::vector>::const_reverse_iterator DifferEnvironment DifferResult diff(TypeId ty1, TypeId ty2) { - +#if defined(__GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + DifferEnvironment differEnv{ty1, ty2, std::nullopt, std::nullopt}; +#if defined(__GNUC__) #pragma GCC diagnostic pop - +#endif + return diffUsingEnv(differEnv, ty1, ty2); }