[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <30954b1d-9245-1d08-3117-f47e782a7486@cumulusnetworks.com>
Date: Mon, 18 Jul 2016 10:09:50 -0600
From: David Ahern <dsa@...ulusnetworks.com>
To: Phil Sutter <phil@....cc>, Stephen Hemminger <shemming@...cade.com>
Cc: Daniel Borkmann <daniel@...earbox.net>,
Nicolas Dichtel <nicolas.dichtel@...nd.com>,
Julien Floret <julien.floret@...nd.com>,
David Laight <David.Laight@...LAB.COM>, netdev@...r.kernel.org
Subject: Re: [iproute PATCH v5 2/5] Use C99 style initializers everywhere
On 7/18/16 8:48 AM, Phil Sutter wrote:
> This big patch was compiled by vimgrepping for memset calls and changing
> to C99 initializer if applicable. One notable exception is the
> initialization of union bpf_attr in tc/tc_bpf.c: changing it would break
> for older gcc versions (at least <=3.4.6).
>
> Calls to memset for struct rtattr pointer fields for parse_rtattr*()
> were just dropped since they are not needed.
>
> The changes here allowed the compiler to discover some unused variables,
> so get rid of them, too.
>
> Signed-off-by: Phil Sutter <phil@....cc>
> ---
Acked-by: David Ahern <dsa@...ulusnetworks.com>
Powered by blists - more mailing lists