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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

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.

None yet

1 participant