Skip to content

Conversation

vstinner
Copy link
Member

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].

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].
@vstinner
Copy link
Member Author

cc @erlend-aasland @hroncok @hrnciar

@vstinner vstinner merged commit 90e7230 into python:main May 15, 2022
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@vstinner vstinner deleted the include_c90 branch May 15, 2022 09:19
@miss-islington
Copy link
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 90e72300730189c4a48529baaad9b0005d40731c 3.11

@bedevere-bot
Copy link

GH-92813 is a backport of this pull request to the 3.11 branch.

vstinner added a commit that referenced this pull request May 16, 2022
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 90e7230)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants