summaryrefslogtreecommitdiffstats
path: root/Include/ceval.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-02 22:59:57 (GMT)
committerGitHub <noreply@github.com>2022-06-02 22:59:57 (GMT)
commit941d7054c1f73aa097bdc4e55ede819c8f123819 (patch)
tree2ce64d3584520c268d2e71d947efba71cd4d8fdd /Include/ceval.h
parent069c96f84ccd302436be180c8628289cc0efa977 (diff)
downloadcpython-941d7054c1f73aa097bdc4e55ede819c8f123819.zip
cpython-941d7054c1f73aa097bdc4e55ede819c8f123819.tar.gz
cpython-941d7054c1f73aa097bdc4e55ede819c8f123819.tar.bz2
gh-91320: Fix more old-style cast warnings in C++ (#93285)
Use _PyObject_CAST() in the public C API to fix C++ compiler warnings: "use of old-style cast" (clang -Wold-style-cast).
Diffstat (limited to 'Include/ceval.h')
-rw-r--r--Include/ceval.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 1b57f6e..a5387bd 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -31,7 +31,7 @@ Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
/* Deprecated since PyEval_CallObjectWithKeywords is deprecated */
#define PyEval_CallObject(callable, arg) \
- PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
+ PyEval_CallObjectWithKeywords(callable, arg, _PyObject_CAST(_Py_NULL))
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallFunction(
PyObject *callable, const char *format, ...);