Re: [PATCH bpf-next] libbpf: Ignore -Wformat-nonliteral warning

2019-04-06 Thread Alexei Starovoitov
On Sat, Apr 06, 2019 at 10:37:34PM -0700, Andrey Ignatov wrote: > vsprintf() in __base_pr() uses nonliteral format string and it breaks > compilation for those who provide corresponding extra CFLAGS, e.g.: > https://github.com/libbpf/libbpf/issues/27 > > If libbpf is built with the flags from PR:

Re: [PATCH bpf-next] libbpf: Ignore -Wformat-nonliteral warning

2019-04-06 Thread Yonghong Song
On 4/6/19 10:37 PM, Andrey Ignatov wrote: > vsprintf() in __base_pr() uses nonliteral format string and it breaks > compilation for those who provide corresponding extra CFLAGS, e.g.: > https://github.com/libbpf/libbpf/issues/27 > > If libbpf is built with the flags from PR: > >libbpf.c:68:

[PATCH bpf-next] libbpf: Ignore -Wformat-nonliteral warning

2019-04-06 Thread Andrey Ignatov
vsprintf() in __base_pr() uses nonliteral format string and it breaks compilation for those who provide corresponding extra CFLAGS, e.g.: https://github.com/libbpf/libbpf/issues/27 If libbpf is built with the flags from PR: libbpf.c:68:26: error: format string is not a string literal [-Werror