Return-Path: Received: from mail-it0-f47.google.com ([209.85.214.47]:40555 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750848AbeCIHiP (ORCPT ); Fri, 9 Mar 2018 02:38:15 -0500 Received: by mail-it0-f47.google.com with SMTP id e64-v6so1757780ita.5 for ; Thu, 08 Mar 2018 23:38:15 -0800 (PST) Date: Thu, 8 Mar 2018 23:38:12 -0800 From: Jakub Kicinski To: Jiri Benc Cc: netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann Subject: Re: [PATCH bpf-next 1/7] tools: bpftool: silence 'missing initializer' warnings Message-ID: <20180308233758.3a374b66@cakuba.netronome.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 8 Mar 2018 23:00:35 +0100, Jiri Benc wrote: > When building bpf tool, gcc emits piles of warnings: >=20 > prog.c: In function =E2=80=98prog_fd_by_tag=E2=80=99: > prog.c:101:9: warning: missing initializer for field =E2=80=98type=E2=80= =99 of =E2=80=98struct bpf_prog_info=E2=80=99 [-Wmissing-field-initializers] > struct bpf_prog_info info =3D {}; > ^ > In file included from /home/storage/jbenc/git/net-next/tools/lib/bpf/bpf.= h:26:0, > from prog.c:47: > /home/storage/jbenc/git/net-next/tools/include/uapi/linux/bpf.h:925:8: no= te: =E2=80=98type=E2=80=99 declared here > __u32 type; > ^ >=20 > As these warnings are not useful, switch them off. >=20 > Signed-off-by: Jiri Benc FWIW I couldn't reproduce this one. Out of curiosity what GCC did you use?