]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-92781: Avoid mixing declarations and code in C API (#92783) (#92813)
authorVictor Stinner <vstinner@python.org>
Mon, 16 May 2022 11:19:52 +0000 (13:19 +0200)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 11:19:52 +0000 (13:19 +0200)
commita3d2ce95d185c70cdec56f10a09e2d67c0d3246e
treebebfdc9a740e4655baba188be0d42eac4a592072
parent5f24acdca0e2777afec90aac5e63936ec571099b
gh-92781: Avoid mixing declarations and code in C API (#92783) (#92813)

Avoid mixing declarations and code in the C API to fix the compiler
warning: "ISO C90 forbids mixed declarations and code"
[-Werror=declaration-after-statement].

(cherry picked from commit 90e72300730189c4a48529baaad9b0005d40731c)
Include/cpython/abstract.h
Include/cpython/unicodeobject.h
Include/cpython/weakrefobject.h
Misc/NEWS.d/next/C API/2022-05-13-18-17-48.gh-issue-92781.TVDr3-.rst [new file with mode: 0644]