On Sat, Dec 04, 2021 at 01:20:04AM IST, Alexander Lobakin wrote: > Clang doesn't have 'stringop-truncation' group like GCC does, and > complains about it when building samples which use xdp_sample_user > infra: > > samples/bpf/xdp_sample_user.h:48:32: warning: unknown warning group '-Wstringop-truncation', ignored [-Wunknown-warning-option] > #pragma GCC diagnostic ignored "-Wstringop-truncation" > ^ > [ repeat ] > > Those are harmless, but avoidable when guarding it with ifdef. > I could guard push/pop as well, but this would require one more > ifdef cruft around a single line which I don't think is reasonable. > > Fixes: 156f886cf697 ("samples: bpf: Add basic infrastructure for XDP samples") > Signed-off-by: Alexander Lobakin <alexandr.lobakin@xxxxxxxxx> > --- Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> > [...] -- Kartikeya