user/seatd: FTBFS: error: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘2147763601’ to ‘-2147203695’ [-Werror=overflow]
Found on ppc64:
ninja: Entering directory `output'
[1/34] Compiling C object seatd.p/common_evdev.c.o
FAILED: seatd.p/common_evdev.c.o
gcc -Iseatd.p -I. -I.. -I../include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c11 -O3 -Wundef -Wunused -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Wstrict-prototypes -Wimplicit-fa>
../common/evdev.c: In function ‘evdev_revoke’:
../common/evdev.c:27:19: error: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘2147763601’ to ‘-2147203695’ [-Werror=overflow]
return ioctl(fd, EVIOCREVOKE, NULL);
^~~~~~~~~~~
../common/evdev.c: At top level:
cc1: error: unrecognized command line option ‘-Wno-unused-command-line-argument’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
cc1: all warnings being treated as errors