Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_cext, test_cppext: enable /W4 warnings on Windows #124253

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

vstinner
Copy link
Member

Add an explicit cast to (void*) and add Py_UNUSED() to fix some warnings in extension.c.

Add an explicit cast to (void*) and add Py_UNUSED() to fix some
warnings in extension.c.
@vstinner
Copy link
Member Author

Feature requested by @zooba at: capi-workgroup/decisions#30 (comment)

I marked the PR as a draft to see if the tests pass on the CI first.

@vstinner vstinner marked this pull request as ready for review September 19, 2024 18:46
@vstinner
Copy link
Member Author

@zooba: Here is a change to test the Python C API with /W4 instead of /W3. Is it what you asked for?

@zooba
Copy link
Member

zooba commented Sep 19, 2024

Yep, looks good! FWIW, it's about enabling our users to compile with whatever compiler settings they want, rather than forcing them to adapt to our requirements. It allows CPython to be used in many more interesting places than if we try to assert dominance.

@vstinner vstinner merged commit 7a2d77c into python:main Sep 19, 2024
38 checks passed
@vstinner vstinner deleted the test_cext_w4 branch September 19, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants