Mercurial > vim
changeset 30994:dfc507ccfaa5 v9.0.0832
patch 9.0.0832: deprecation warning causes build failure
Commit: https://github.com/vim/vim/commit/5a5f17f9b3fa14c36a7d6c96ac55acaddb6247e1
Author: Philip H <47042125+pheiduck@users.noreply.github.com>
Date: Sat Nov 5 14:05:31 2022 +0000
patch 9.0.0832: deprecation warning causes build failure
Problem: Deprecation warning causes build failure.
Solution: Suppress deprecation warning. (closes https://github.com/vim/vim/issues/11503)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Nov 2022 15:15:05 +0100 |
parents | c52502487895 |
children | 3b55f63159c8 |
files | src/if_python3.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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