Skip to content

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Aug 8, 2024

PR summary

This fixes several warnings I noticed while debugging source builds for #28551.

Most are harmless, but I think the capsule change in _c_internal_utils may have hidden a real error (and possibly MSVC just "did the right thing" for us).

PR checklist

QuLogic added 3 commits August 7, 2024 16:51
Looking at pybind11 again, the `py::capsule::name` method returns a
`const char *`, and comparing that with a literal using `==` is
unspecified behaviour. Seemingly, this is fine on MSVC, but MinGW gcc
warns about it.
This warns with MinGW, since it already defines `_WIN32_WINNT` to
0x0a00.
@QuLogic QuLogic added this to the v3.9.2 milestone Aug 8, 2024
@ksunden ksunden merged commit 1de8208 into matplotlib:main Aug 8, 2024
45 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 8, 2024
@QuLogic QuLogic deleted the fix-mingw branch August 8, 2024 19:24
greglucas added a commit that referenced this pull request Aug 8, 2024
…682-on-v3.9.x

Backport PR #28682 on branch v3.9.x (Fix warnings from mingw compilers)
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.

3 participants