From 50e8dd0d713ccd1ff2509219755c7e68e32841b3 Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 11 Oct 2024 15:47:58 -0700 Subject: [PATCH] more macro crimes --- Analysis/src/Differ.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Analysis/src/Differ.cpp b/Analysis/src/Differ.cpp index 86dae62d..543f783a 100644 --- a/Analysis/src/Differ.cpp +++ b/Analysis/src/Differ.cpp @@ -949,9 +949,11 @@ DifferResult diff(TypeId ty1, TypeId ty2) { #if defined(__GNUC__) && defined(__linux__) #pragma GCC diagnostic push -#if !defined(__has_warning) || __has_warning("-Wmaybe-uninitialized") +#if defined(__has_warning) +#if __has_warning("-Wmaybe-uninitialized") #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif +#endif #endif DifferEnvironment differEnv{ty1, ty2, std::nullopt, std::nullopt};