aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2023-12-21 21:06:20 +0000
committerSergei Trofimovich <slyich@gmail.com>2023-12-21 21:06:20 +0000
commitf3e1f7b2a70a500b740bfc406e893eba0852699a (patch)
tree8bede57947514aed469d1ed7021c1173d6a6dbd0 /include
parent11e3c376e7b843c1bc8ba182260437103db2ca25 (diff)
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
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions