subproject build issues
When including libliftoff @8b08dc1c as subproject, the following build errors happen. It's a simple fix.
FAILED: subprojects/libliftoff/example/dynamic.p/common.c.o
cc -Isubprojects/libliftoff/example/dynamic.p -Isubprojects/libliftoff/example -I../subprojects/libliftoff/example -I../subprojects/libliftoff/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c11 -O0 -g -Wundef -Wmissing-prototypes -Walloca -Wdeclaration-after-statement -Wfloat-conversion -Wsign-conversion -Wno-missing-braces -Wno-unused-parameter -isystem/usr/include/libdrm -MD -MQ subprojects/libliftoff/example/dynamic.p/common.c.o -MF subprojects/libliftoff/example/dynamic.p/common.c.o.d -o subprojects/libliftoff/example/dynamic.p/common.c.o -c ../subprojects/libliftoff/example/common.c
../subprojects/libliftoff/example/common.c: In function ‘pick_crtc’:
../subprojects/libliftoff/example/common.c:54:29: error: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Werror=sign-conversion]
54 | if (enc->possible_crtcs & (1 << j)) {
| ^
cc1: all warnings being treated as errors
[2/8] Compiling C object subprojects/libliftoff/example/compositor.p/common.c.o
FAILED: subprojects/libliftoff/example/compositor.p/common.c.o
cc -Isubprojects/libliftoff/example/compositor.p -Isubprojects/libliftoff/example -I../subprojects/libliftoff/example -I../subprojects/libliftoff/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c11 -O0 -g -Wundef -Wmissing-prototypes -Walloca -Wdeclaration-after-statement -Wfloat-conversion -Wsign-conversion -Wno-missing-braces -Wno-unused-parameter -isystem/usr/include/libdrm -MD -MQ subprojects/libliftoff/example/compositor.p/common.c.o -MF subprojects/libliftoff/example/compositor.p/common.c.o.d -o subprojects/libliftoff/example/compositor.p/common.c.o -c ../subprojects/libliftoff/example/common.c
../subprojects/libliftoff/example/common.c: In function ‘pick_crtc’:
../subprojects/libliftoff/example/common.c:54:29: error: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Werror=sign-conversion]
54 | if (enc->possible_crtcs & (1 << j)) {
| ^
cc1: all warnings being treated as errors
[3/8] Compiling C object subprojects/libliftoff/example/multi-output.p/common.c.o
FAILED: subprojects/libliftoff/example/multi-output.p/common.c.o
cc -Isubprojects/libliftoff/example/multi-output.p -Isubprojects/libliftoff/example -I../subprojects/libliftoff/example -I../subprojects/libliftoff/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c11 -O0 -g -Wundef -Wmissing-prototypes -Walloca -Wdeclaration-after-statement -Wfloat-conversion -Wsign-conversion -Wno-missing-braces -Wno-unused-parameter -isystem/usr/include/libdrm -MD -MQ subprojects/libliftoff/example/multi-output.p/common.c.o -MF subprojects/libliftoff/example/multi-output.p/common.c.o.d -o subprojects/libliftoff/example/multi-output.p/common.c.o -c ../subprojects/libliftoff/example/common.c
../subprojects/libliftoff/example/common.c: In function ‘pick_crtc’:
../subprojects/libliftoff/example/common.c:54:29: error: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Werror=sign-conversion]
54 | if (enc->possible_crtcs & (1 << j)) {
| ^
cc1: all warnings being treated as errors
[4/8] Compiling C object subprojects/libliftoff/example/simple.p/common.c.o
FAILED: subprojects/libliftoff/example/simple.p/common.c.o
cc -Isubprojects/libliftoff/example/simple.p -Isubprojects/libliftoff/example -I../subprojects/libliftoff/example -I../subprojects/libliftoff/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c11 -O0 -g -Wundef -Wmissing-prototypes -Walloca -Wdeclaration-after-statement -Wfloat-conversion -Wsign-conversion -Wno-missing-braces -Wno-unused-parameter -isystem/usr/include/libdrm -MD -MQ subprojects/libliftoff/example/simple.p/common.c.o -MF subprojects/libliftoff/example/simple.p/common.c.o.d -o subprojects/libliftoff/example/simple.p/common.c.o -c ../subprojects/libliftoff/example/common.c
../subprojects/libliftoff/example/common.c: In function ‘pick_crtc’:
../subprojects/libliftoff/example/common.c:54:29: error: conversion to ‘uint32_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Werror=sign-conversion]
54 | if (enc->possible_crtcs & (1 << j)) {
| ^
cc1: all warnings being treated as errors