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

gh-96017: Fix some compiler warnings (GH-96018) #96018

Merged
merged 3 commits into from
Aug 19, 2022

Conversation

tiran
Copy link
Member

@tiran tiran commented Aug 16, 2022

  • "comparison of integers of different signs" in typeobject.c
  • only define static_builtin_index_is_set in DEBUG builds
  • only define recreate_gil with ifdef HAVE_FORK

- "comparison of integers of different signs" in typeobject.c
- only define static_builtin_index_is_set in DEBUG builds
- unset NDEBUG before including assert.h
- only define recreate_gil with ifdef HAVE_FORK
Modules/_testcapi/parts.h Outdated Show resolved Hide resolved
@tiran tiran changed the title gh-96017: Fix some compiler warnings gh-96017: Fix some compiler warnings (GH-96018) Aug 19, 2022
@tiran tiran merged commit d9c1b74 into python:main Aug 19, 2022
@miss-islington
Copy link
Contributor

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

@tiran tiran deleted the gh-96017-compiler-warnings branch August 19, 2022 06:08
@miss-islington
Copy link
Contributor

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

tiran added a commit to tiran/cpython that referenced this pull request Aug 19, 2022
- "comparison of integers of different signs" in typeobject.c
- only define static_builtin_index_is_set in DEBUG builds
- only define recreate_gil with ifdef HAVE_FORK.
(cherry picked from commit d9c1b74)

Co-authored-by: Christian Heimes <[email protected]>
@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 19, 2022
ambv pushed a commit that referenced this pull request Oct 5, 2022
- only define recreate_gil with ifdef HAVE_FORK.
(cherry picked from commit d9c1b74)

Co-authored-by: Christian Heimes <[email protected]>
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.

4 participants