From 458d9ee89ee36f5ea82e8b53d52e2f3ee26edff4 Mon Sep 17 00:00:00 2001 From: Dery Almas Date: Sat, 15 Nov 2025 20:07:11 +0100 Subject: [PATCH] Fix shadow error suppression on GCC It looks like the actual macro defined by GCC is `__GNUC__`. From my testing, `__GNU__` does not seem to be defined neither on my musl machine nor a Fedora Linux VM. I have no idea if it's a typo or set by specific libraries, but testing for `__GNUC__` actually suppresses shadowing errors on my end. --- public/tracy/Tracy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tracy/Tracy.hpp b/public/tracy/Tracy.hpp index 31289b89..bd185fed 100644 --- a/public/tracy/Tracy.hpp +++ b/public/tracy/Tracy.hpp @@ -157,7 +157,7 @@ _Pragma("clang diagnostic ignored \"-Wshadow\"") \ Expr \ _Pragma("clang diagnostic pop") -#elif defined(__GNU__) +#elif defined(__GNUC__) #define SuppressVarShadowWarning(Expr) \ _Pragma("GCC diagnostic push") \ _Pragma("GCC diagnostic ignored \"-Wshadow\"") \