Skip to content

Fixed Visual C++ warning C4214#602

Merged
Youw merged 1 commit intolibusb:masterfrom
slouken:bit-field-types-other-than-int
Jul 29, 2023
Merged

Fixed Visual C++ warning C4214#602
Youw merged 1 commit intolibusb:masterfrom
slouken:bit-field-types-other-than-int

Conversation

@slouken
Copy link
Copy Markdown
Contributor

@slouken slouken commented Jul 25, 2023

No description provided.

@Youw
Copy link
Copy Markdown
Member

Youw commented Jul 25, 2023

What is the original warning?
In theory I might understand why change ULONG to UINT, but BOOLEAN to UINT is not as traight-forward.

That struct has to be 100% ABI stable. It is reversed-engineered, based on some pieces found online.

Please see that the CI build is failing.

I'd consider explicitly supressing some warnings, instead of changing types as suggested in this PR.

@Youw Youw added the Windows Related to Windows backend label Jul 25, 2023
@slouken
Copy link
Copy Markdown
Contributor Author

slouken commented Jul 25, 2023

Okay, I'll make that change instead. I think the change of BOOLEAN to UINT may be incorrect here.

@slouken slouken force-pushed the bit-field-types-other-than-int branch from f4de7f5 to 23db93d Compare July 25, 2023 21:03
@slouken slouken force-pushed the bit-field-types-other-than-int branch from 23db93d to a072978 Compare July 25, 2023 21:04
@Youw
Copy link
Copy Markdown
Member

Youw commented Jul 25, 2023

thanks

@Youw Youw merged commit 98ab22a into libusb:master Jul 29, 2023
@slouken slouken deleted the bit-field-types-other-than-int branch July 29, 2023 17:17
cmorty added a commit to cmorty/hidapi that referenced this pull request Nov 16, 2023
…: bit field types other than int (libusb#602)"

This reverts commit 98ab22a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Windows Related to Windows backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants