From 5375205761b5ed247f992abce341cf745dded38d Mon Sep 17 00:00:00 2001 From: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Fri, 4 Nov 2022 22:32:21 +0000 Subject: [PATCH] patch 9.0.0830: compiling with Perl on Mac 12 fails Problem: Compiling with Perl on Mac 12 fails. Solution: Suppress infinite warnings. (closes #11499) --- src/if_perl.xs | 5 +++++ src/version.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/if_perl.xs b/src/if_perl.xs index 0241c319f..08e0e02f3 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -145,6 +145,11 @@ # define EXTERN_C #endif +// Suppress Infinite warnings when compiling XS modules under macOS 12 Monterey. +#if defined(__clang__) && defined(__clang_major__) && __clang_major__ > 11 +#pragma clang diagnostic ignored "-Wcompound-token-split-by-macro" +#endif + /* Compatibility hacks over */ static PerlInterpreter *perl_interp = NULL; diff --git a/src/version.c b/src/version.c index 2364d1275..a914e78af 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 830, /**/ 829, /**/ -- 2.40.0