Messages in this thread | | | Date | Sat, 23 Mar 2019 21:49:10 -0400 (EDT) | Subject | Re: [PATCH] tipc: avoid a clang -Wuninitialized warning | From | David Miller <> |
| |
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.
| |