summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-12-07 10:56:20 (GMT)
committerGitHub <noreply@github.com>2020-12-07 10:56:20 (GMT)
commit0ef96c2b2a291c9d2d9c0ba42bbc1900a21e65f3 (patch)
treeb7f921c6b76994932e2845ceff1853a6149f4fb3 /Include
parentc266736ec1f9ebef38b134ceb4832df015711b38 (diff)
downloadcpython-0ef96c2b2a291c9d2d9c0ba42bbc1900a21e65f3.zip
cpython-0ef96c2b2a291c9d2d9c0ba42bbc1900a21e65f3.tar.gz
cpython-0ef96c2b2a291c9d2d9c0ba42bbc1900a21e65f3.tar.bz2
bpo-30459: Cast the result of PyCell_SET to void (GH-23654)
Diffstat (limited to 'Include')
-rw-r--r--Include/cellobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cellobject.h b/Include/cellobject.h
index f12aa90..81bc784 100644
--- a/Include/cellobject.h
+++ b/Include/cellobject.h
@@ -20,7 +20,7 @@ PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);
#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
-#define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)
+#define PyCell_SET(op, v) ((void)(((PyCellObject *)(op))->ob_ref = v))
#ifdef __cplusplus
}