From 4bc2a3f51499fb6c08cdc402ebed4b76d5cc0a3a Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 29 Apr 2025 20:51:05 +0100 Subject: [PATCH] Warning fix for clang --- Source/Modules/c.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/c.cxx b/Source/Modules/c.cxx index 6fdc9efac..fab74f130 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -42,7 +42,7 @@ enum exceptions_support { // When using scoped_dohptr, it's very simple to accidentally pass it to a vararg function, such as Printv() or Printf(), resulting in catastrophic results // during run-time (crash or, worse, junk in the generated output), so make sure gcc warning about this, which is not enabled by default for some reason (see // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867 for more information), is enabled. -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic error "-Wconditionally-supported" #endif // __GNUC__