Re: [PATCH bpf-next v2] tools: bpftool: fix variable shadowing in emit_obj_refs_json()

2020-06-24 Thread Daniel Borkmann
On 6/23/20 11:36 PM, 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(struct obj_refs_table *t

Re: [PATCH bpf-next v2] tools: bpftool: fix variable shadowing in emit_obj_refs_json()

2020-06-23 Thread Andrii Nakryiko
On Tue, Jun 23, 2020 at 2:39 PM 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 v2] tools: bpftool: fix variable shadowing in 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)