-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Py_IS_TYPE(): cast discards ‘const’ qualifier from pointer target type #88544
Comments
The following change introduced a compiler warning: commit c5cb077
Steps to Reproduce:
Actual results: Attached PR fix the compiler warning. Issue reported on Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1969663 |
Comment from my PR: // bpo-44378: Don't use Py_TYPE() since Py_TYPE() requires a non-const By the way, I wrote a change in Python 3.11 to convert Py_TYPE() macro into a static inline function which accepts a *const* PyObject pointer ("const PyObject*"): But this change had to be reverted since it caused a buildbot regression (bpo-44348). |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: