Skip to content

Commit

Permalink
wminput/plugins/led/led.c: fix build with gcc >= 14
Browse files Browse the repository at this point in the history
Fix the following build failure with gcc >= 14:

led.c: In function 'wmplugin_exec':
led.c:86:42: error: assignment to 'struct cwiid_btn_message *' from incompatible pointer type 'struct cwiid_btn_mesg *' [-Wincompatible-pointer-types]
   86 |                                 btn_mesg = &mesg[i].btn_mesg;
      |                                          ^

Fixes:
 - http://autobuild.buildroot.org/results/a3bde74ff2137d088f4261e62930859bfe460cb9

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Jul 23, 2024
1 parent fadf11e commit 10106fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wminput/plugins/led/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct wmplugin_data *wmplugin_exec(int mesg_count, union cwiid_mesg mesg[])
{
int i;
uint8_t button;
struct cwiid_btn_message *btn_mesg;
struct cwiid_btn_mesg *btn_mesg;

uint8_t led_state = (Led1 ? CWIID_LED1_ON : 0)
| (Led2 ? CWIID_LED2_ON : 0)
Expand Down

0 comments on commit 10106fd

Please sign in to comment.