Skip to content

Commit

Permalink
gamepad: fix ABI break in wpe_gamepad_client_interface
Browse files Browse the repository at this point in the history
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]
```

(cherry picked from commit 3acbb9f)
  • Loading branch information
cadubentzen authored and aperezdc committed Feb 6, 2025
1 parent 548f53c commit 0b7baf9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/wpe/gamepad.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ struct wpe_gamepad_client_interface {
/*< private >*/
void (*_wpe_reserved1)(void);
void (*_wpe_reserved2)(void);
void (*_wpe_reserved3)(void);
};

/**
Expand Down

0 comments on commit 0b7baf9

Please sign in to comment.