diff options
| author | Philip H <47042125+pheiduck@users.noreply.github.com> | 2022-11-05 14:05:31 +0000 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2022-11-05 14:05:31 +0000 |
| commit | 5a5f17f9b3fa14c36a7d6c96ac55acaddb6247e1 (patch) | |
| tree | c546eb721dcd455db3840940107e866df456bf3a | |
| parent | 6c3d3e69047438ff5b7f58d44fe66af9e2c4212b (diff) | |
| download | vim-git-9.0.0832.tar.gz | |
patch 9.0.0832: deprecation warning causes build failurev9.0.0832
Problem: Deprecation warning causes build failure.
Solution: Suppress deprecation warning. (closes #11503)
| -rw-r--r-- | src/if_python3.c | 5 | ||||
| -rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/if_python3.c b/src/if_python3.c index 188e9c3e6..d06f66210 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -81,6 +81,11 @@ # 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 diff --git a/src/version.c b/src/version.c index ca7091464..f7817f2b7 100644 --- 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 */ /**/ + 832, +/**/ 831, /**/ 830, |
