patch 9.1.1189: if_python: build error due to incompatible pointer types Commit: https://github.com/vim/vim/commit/0a825bdde86a4ca3d8b9724e5e08a61d879eed2a Author: oreo639 <oreo6...@gmail.com> Date: Sun Mar 9 08:54:21 2025 +0100
patch 9.1.1189: if_python: build error due to incompatible pointer types Problem: if_python: build error due to incompatible pointer types Solution: cast pointer to PyObject* (oreo639) Avoid build failure due to -Wincompatible-pointer-types becoming an error in gcc 14. When Py_LIMITED_API is < 0x030b0000, then the for Py_XDECREF must be PyObject*. Vim targets Py_LIMITED_API = 0x03080000 (python 3.8). closes: #16824 Signed-off-by: oreo639 <oreo6...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/if_py_both.h b/src/if_py_both.h index 5603ac7cc..a679be54a 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -5397,7 +5397,7 @@ RangeDestructor(PyObject *self_obj) { RangeObject *self = (RangeObject*)self_obj; PyObject_GC_UnTrack((void *)(self)); - Py_XDECREF(self->buf); + Py_XDECREF(((PyObject *)(self->buf))); PyObject_GC_Del((void *)(self)); } diff --git a/src/version.c b/src/version.c index b0cec3056..af03cd9dd 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1189, /**/ 1188, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1trBZt-00HIyN-Fc%40256bit.org.