You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[4/195] Compiling C object subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o
FAILED: subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o
cc -Isubprojects/wlroots/libwlroots.a.p -Isubprojects/wlroots -I../gamescope/subprojects/wlroots -Isubprojects/wlroots/include -I../gamescope/subprojects/wlroots/include -Isubprojects/wlroots/protocol -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -DWLR_USE_UNSTABLE -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../gamescope/subprojects/wlroots/= -fPIC -MD -MQ subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o -MF subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o.d -o subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o -c ../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c: In function ‘add_pad_group_from_libinput’:
../gamescope/subprojects/wlroots/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);
| ^~~~~~~~
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:36:38: note: earlier argument should specify number of elements, later size of each element
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:53:39: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
53 | group->strips = calloc(sizeof(unsigned int), group->strip_count);
| ^~~~~~~~
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:53:39: note: earlier argument should specify number of elements, later size of each element
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:69:40: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
69 | group->buttons = calloc(sizeof(unsigned int), group->button_count);
| ^~~~~~~~
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:69:40: note: earlier argument should specify number of elements, later size of each element
cc1: all warnings being treated as errors
[21/195] Compiling C object subprojects/wlroots/libwlroots.a.p/types_wlr_cursor.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: