Skip to content

Silence warning on VS <=2017#10

Open
lanurmi wants to merge 1 commit into3.2from
silence-c4265
Open

Silence warning on VS <=2017#10
lanurmi wants to merge 1 commit into3.2from
silence-c4265

Conversation

@lanurmi
Copy link
Owner

@lanurmi lanurmi commented Sep 24, 2025

Was caused by code that was added to silence similar warning on GCC.

Does this break ABI?

Explicitly defining a destructor in wxMSWOwnerDrawnButtonBase causes
precisely the kind of compiler warnings (C4265) that the definition was
meant to suppress on GCC.

C4265 is not enabled by default in VC++, but if you have it enabled,
you'll get plenty of pointless warnings through anything that #includes
wx/msw/ownerdrawnbutton.h. This is also the only spot in wx headers that
triggers C4265.

The issue appears to be 3.2-specific.
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.

1 participant