[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQ+VVPfr1WHS-xLJ8gGtUPUrNXHwBV6-QLftkf1v3jFrtA@mail.gmail.com>
Date: Sat, 17 Nov 2018 01:44:57 +0000
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Joe Stringer <joe@...d.net.nz>
Cc: Daniel Borkmann <daniel@...earbox.net>,
Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next] selftests/bpf: Fix uninitialized duration warning
On Fri, Nov 9, 2018 at 6:20 PM Joe Stringer <joe@...d.net.nz> wrote:
>
> Daniel Borkmann reports:
>
> test_progs.c: In function ‘main’:
> test_progs.c:81:3: warning: ‘duration’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> printf("%s:PASS:%s %d nsec\n", __func__, tag, duration);\
> ^~~~~~
> test_progs.c:1706:8: note: ‘duration’ was declared here
> __u32 duration;
> ^~~~~~~~
>
> Signed-off-by: Joe Stringer <joe@...d.net.nz>
Applied, thanks.
Powered by blists - more mailing lists