From dafee8bbef71e92ef0548422dcd583432ab3b66c Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 11 Oct 2024 15:37:54 -0700 Subject: [PATCH] nest again --- Analysis/src/Differ.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Analysis/src/Differ.cpp b/Analysis/src/Differ.cpp index f4fe5936..86dae62d 100644 --- a/Analysis/src/Differ.cpp +++ b/Analysis/src/Differ.cpp @@ -947,13 +947,15 @@ std::vector>::const_reverse_iterator DifferEnvironment DifferResult diff(TypeId ty1, TypeId ty2) { -#if defined(__GNUC__) +#if defined(__GNUC__) && defined(__linux__) #pragma GCC diagnostic push +#if !defined(__has_warning) || __has_warning("-Wmaybe-uninitialized") #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif #endif DifferEnvironment differEnv{ty1, ty2, std::nullopt, std::nullopt}; -#if defined(__GNUC__) +#if defined(__GNUC__) && defined(__linux__) #pragma GCC diagnostic pop #endif