]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0832: deprecation warning causes build failure v9.0.0832
authorPhilip H <47042125+pheiduck@users.noreply.github.com>
Sat, 5 Nov 2022 14:05:31 +0000 (14:05 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Nov 2022 14:05:31 +0000 (14:05 +0000)
Problem:    Deprecation warning causes build failure.
Solution:   Suppress deprecation warning. (closes #11503)

src/if_python3.c
src/version.c

index 188e9c3e6d6645593db211dd267b0d102ee33af0..d06f66210734f9773f99f3ad9964702adcbf3ab9 100644 (file)
 # define CODEC_ERROR_HANDLER NULL
 #endif
 
+// Suppress Python 3.11 depreciations to see useful warnings
+#if defined(__clang__) && defined(__clang_major__) && __clang_major__ > 11
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 // Python 3 does not support CObjects, always use Capsules
 #define PY_USE_CAPSULE
 
index ca709146494119f9c188c97bd0270a82c74fc66d..f7817f2b7b30639224725f2369362a624919253c 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    832,
 /**/
     831,
 /**/