bpf.c: In function ‘alloc_zero_tailing_info’:
bpf.c:219:23: error: comparison of integer expressions of different signedness: ‘int’ and ‘__u32’ {aka ‘unsigned int’} [-Werror=sign-compare]
219 | for (i = 0; i < cnt; i++) {
| ^
cc1: all warnings being treated as errors
lot's of code with similar issues are exist in libbpf, to fix this error from source code seems a hard work.
is there any advice about this?
https://github.com/iovisor/bcc/pull/4975 adds
-Werror
to cflags, then I get sign-compare erros belowlot's of code with similar issues are exist in libbpf, to fix this error from source code seems a hard work. is there any advice about this?