changeset 30990:830f51eeca95 v9.0.0830

patch 9.0.0830: compiling with Perl on Mac 12 fails Commit: https://github.com/vim/vim/commit/5375205761b5ed247f992abce341cf745dded38d Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Fri Nov 4 22:32:21 2022 +0000 patch 9.0.0830: compiling with Perl on Mac 12 fails Problem: Compiling with Perl on Mac 12 fails. Solution: Suppress infinite warnings. (closes https://github.com/vim/vim/issues/11499)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Nov 2022 23:45:03 +0100
parents fd0352d238ac
children 39b6e4736265
files src/if_perl.xs src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    830,
+/**/
     829,
 /**/
     828,