lkml.org 
[lkml]   [2019]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] tipc: avoid a clang -Wuninitialized warning
From
From: Arnd Bergmann <arnd@arndb.de>
Date: Fri, 22 Mar 2019 15:18:13 +0100

> clang notices that we pass 'maddr' into the tipc_bearer_xmit() function
> without having initialized it first:
...
> This is harmless because it won't use 'maddr' if the
> queue is empty, but it's better to make that explicit
> and not even call the function in that case.
>
> As clang is able to inline the check, it then notices that
> the code is safe.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

It looks like Jon's patch took care of this.

\
 
 \ /
  Last update: 2019-03-24 02:50    [W:0.033 / U:5.984 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site