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

Restore original thread state #8065

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Conversation

radarhere
Copy link
Member

https://github.com/python-pillow/Pillow/actions/runs/9108593264/job/25039692144#step:5:225

src/display.c: In function 'windowCallback':
src/display.c:508:20: warning: variable 'current_threadstate' set but not used [-Wunused-but-set-variable]
508 | PyThreadState *current_threadstate;
| ^~~~~~~~~~~~~~~~~~~

Looking at windowCallback(), I think this should be used at the end of the function to restore the original thread state.

@hugovk hugovk merged commit 4d9fdac into python-pillow:main Jun 25, 2024
56 of 57 checks passed
@radarhere radarhere deleted the threadstate branch June 25, 2024 11:58
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.

2 participants