summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-15 09:19:52 (GMT)
committerGitHub <noreply@github.com>2022-05-15 09:19:52 (GMT)
commit90e72300730189c4a48529baaad9b0005d40731c (patch)
tree9a4313d1b3fca0a17e4349bff1750497a89baec0 /Misc
parentdb0b455ff482df68f331411bf22b3e5829398280 (diff)
downloadcpython-90e72300730189c4a48529baaad9b0005d40731c.zip
cpython-90e72300730189c4a48529baaad9b0005d40731c.tar.gz
cpython-90e72300730189c4a48529baaad9b0005d40731c.tar.bz2
gh-92781: Avoid mixing declarations and code in C API (#92783)
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].
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2022-05-13-18-17-48.gh-issue-92781.TVDr3-.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-05-13-18-17-48.gh-issue-92781.TVDr3-.rst b/Misc/NEWS.d/next/C API/2022-05-13-18-17-48.gh-issue-92781.TVDr3-.rst
new file mode 100644
index 0000000..6442ba6
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2022-05-13-18-17-48.gh-issue-92781.TVDr3-.rst
@@ -0,0 +1,3 @@
+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]. Patch by Victor Stinner.