Re: [PATCH bpf-next] tools: bpftool: do not pass json_wtr to emit_obj_refs_json()

2020-06-23 Thread Quentin Monnet
On Tue, 23 Jun 2020 at 19:27, Andrii Nakryiko wrote: > > On Tue, Jun 23, 2020 at 8:54 AM Quentin Monnet wrote: > > > > Building bpftool yields the following complaint: > > > > pids.c: In function ‘emit_obj_refs_json’: > > pids.c:175:80: warning: declaration of ‘json_wtr’ shadows a global

Re: [PATCH bpf-next] tools: bpftool: do not pass json_wtr to emit_obj_refs_json()

2020-06-23 Thread Andrii Nakryiko
On Tue, Jun 23, 2020 at 8:54 AM Quentin Monnet wrote: > > Building bpftool yields the following complaint: > > pids.c: In function ‘emit_obj_refs_json’: > pids.c:175:80: warning: declaration of ‘json_wtr’ shadows a global > declaration [-Wshadow] > 175 | void emit_obj_refs_json(stru

[PATCH bpf-next] tools: bpftool: do not pass json_wtr to emit_obj_refs_json()

2020-06-23 Thread Quentin Monnet
Building bpftool yields the following complaint: pids.c: In function ‘emit_obj_refs_json’: pids.c:175:80: warning: declaration of ‘json_wtr’ shadows a global declaration [-Wshadow] 175 | void emit_obj_refs_json(struct obj_refs_table *table, __u32 id, json_writer_t *json_wtr)