wlroots/backend/libinput
Sergei Trofimovich f3e1f7b2a7 backend: fix build against upcoming gcc-14 (-Werror=calloc-transposed-args)
`gcc-14` added a new `-Wcalloc-transposed-args` warning recently. It
detected minor infelicity in `calloc()` API usage in `wlroots`:

    ../backend/libinput/tablet_pad.c: In function 'add_pad_group_from_libinput':
    ../backend/libinput/tablet_pad.c:36:38: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
       36 |         group->rings = calloc(sizeof(unsigned int), group->ring_count);
          |                                      ^~~~~~~~
    ../backend/libinput/tablet_pad.c:36:38: note: earlier argument should specify number of elements, later size of each element
2023-12-21 21:06:20 +00:00
..
backend.c treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical 2023-10-03 01:51:07 -04:00
events.c treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical 2023-10-03 01:51:07 -04:00
keyboard.c backend/libinput: use struct initializers for events 2023-06-14 15:20:41 +02:00
meson.build build: unify naming for HAVE_* defines 2022-12-06 22:39:45 +00:00
pointer.c backend/libinput: use struct initializers for events 2023-06-14 15:20:41 +02:00
switch.c backend/libinput: use struct initializers for events 2023-06-14 15:20:41 +02:00
tablet_pad.c backend: fix build against upcoming gcc-14 (-Werror=calloc-transposed-args) 2023-12-21 21:06:20 +00:00
tablet_tool.c treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical 2023-10-03 01:51:07 -04:00
touch.c backend/libinput: use struct initializers for events 2023-06-14 15:20:41 +02:00