mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 06:50:06 +01:00
Fix a compiler warning
[1/16] Compiling C object libevdev.so.2.3.0.p/libevdev_libevdev.c.o
../libevdev/libevdev.c:665:40: warning: argument 2 of type ‘struct slot_change_state[dev->num_slots]’ declared as a variable length array [-Wvla-parameter]
665 | struct slot_change_state changes_out[dev->num_slots])
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../libevdev/libevdev.c:47:52: note: previously declared as a pointer ‘struct slot_change_state *’
47 | struct slot_change_state *changes_out);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c2eaaa171e
commit
2d49be8303
1 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,8 @@ struct slot_change_state {
|
|||
};
|
||||
|
||||
static int sync_mt_state(struct libevdev *dev,
|
||||
struct slot_change_state *changes_out);
|
||||
struct slot_change_state changes_out[dev->num_slots]);
|
||||
|
||||
static int
|
||||
update_key_state(struct libevdev *dev, const struct input_event *e);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue