Hi everyone, This is version 2 for the proposed patch. In initial version I rather disabled the warnings from showing for the particular tests, as I was afraid I would change the test purpose by changing the code. This time I corrected the warnings in GCC by adapting the code. For jeq_infer_not_null_fail.c, it seems rather more intricate to fix the warning. In this particular case I left the disabled warning. If you rather think that it can be fixed I hope you can advise me how to. Best regards, Cupertino Changes from v1: - Fixes warnings by actual code changes. Cc: jose.marchesi@xxxxxxxxxx Cc: david.faust@xxxxxxxxxx Cc: Yonghong Song <yonghong.song@xxxxxxxxx> Cc: Eduard Zingerman <eddyz87@xxxxxxxxx> Cc: Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> Cupertino Miranda (1): selftests/bpf: Fix a few tests for GCC related warnings. .../selftests/bpf/progs/cpumask_failure.c | 3 -- .../testing/selftests/bpf/progs/dynptr_fail.c | 12 ++--- .../bpf/progs/jeq_infer_not_null_fail.c | 4 ++ .../selftests/bpf/progs/test_tunnel_kern.c | 47 +++++++++++-------- 4 files changed, 37 insertions(+), 29 deletions(-) -- 2.39.2