]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1189: if_python: build error due to incompatible pointer types v9.1.1189
authororeo639 <oreo6391@gmail.com>
Sun, 9 Mar 2025 07:54:21 +0000 (08:54 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 9 Mar 2025 07:54:21 +0000 (08:54 +0100)
commit0a825bdde86a4ca3d8b9724e5e08a61d879eed2a
treea9f5634e003548e43efe1f6336c9aebfaee6675a
parent14da0fb2d81a64ba4db78bed5a64522b58f351a2
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 <oreo6391@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/if_py_both.h
src/version.c