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

gamepad: fix ABI break in wpe_gamepad_client_interface #135

Merged

Conversation

cadubentzen
Copy link
Contributor

In #134, the analog_button_changed field was added to wpe_gamepad_client_interface, but it missed removing one of trailing reserved fields, so the struct size grew and broke upstream WPE build in developer mode:

GamepadLibWPE.cpp:62:5: error: missing field '_wpe_reserved3' initializer [-Werror,-Wmissing-field-initializers]

In WebPlatformForEmbedded#134, the analog_button_changed field was added to
wpe_gamepad_client_interface, but it missed removing one of trailing
reserved fields, so the struct size grew and broke upstream WPE build
in developer mode:

```
GamepadLibWPE.cpp:62:5: error: missing field '_wpe_reserved3' initializer [-Werror,-Wmissing-field-initializers]
```
@aperezdc
Copy link
Contributor

aperezdc commented Feb 6, 2025

I had commented about the need to do this in #133 (comment) but the PR that ultimately landed was #134 which didn't take into account my comment.

Good catch @cadubentzen, thanks for the fix!

@aperezdc aperezdc merged commit 3acbb9f into WebPlatformForEmbedded:master Feb 6, 2025
6 checks passed
@aperezdc
Copy link
Contributor

aperezdc commented Feb 6, 2025

Backported into the 1.16 branch as commit 0b7baf9

@cadubentzen cadubentzen deleted the analog-button-abi branch February 6, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants