From 485427b6ff1cd980ce0691b7ebf493e7bb405cc6 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 22 Apr 2022 11:09:17 +0200 Subject: [PATCH] gh-90667: fix incompatible pointer type warnings --- Include/internal/pycore_object.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h index f022f8246989d1..7e187e5fd5ddc7 100644 --- a/Include/internal/pycore_object.h +++ b/Include/internal/pycore_object.h @@ -47,6 +47,8 @@ _Py_DECREF_SPECIALIZED(PyObject *op, const destructor destruct) destruct(op); } } +#define _Py_DECREF_SPECIALIZED(op, destruct) \ + _Py_DECREF_SPECIALIZED((op), (const destructor)(destruct)) static inline void _Py_DECREF_NO_DEALLOC(PyObject *op)