]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30459: Use (void) in macros setting variables (GH-28982)
authorVictor Stinner <vstinner@python.org>
Fri, 15 Oct 2021 17:44:35 +0000 (19:44 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Oct 2021 17:44:35 +0000 (19:44 +0200)
commit51f8196d05f0e271358eee0f90fe044b20449fb5
treefe8cca5dca4f3ed8534701b958933b0aec1afcf4
parent547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba
bpo-30459: Use (void) in macros setting variables (GH-28982)

Convert the result of macros setting variables to void to avoid risks
of misusing them:

* _PyGCHead_SET_NEXT()
* asdl_seq_SET()
* asdl_seq_SET_UNTYPED()
Include/internal/pycore_asdl.h
Include/internal/pycore_gc.h