lkml.org 
[lkml]   [2021]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tools/perf: Do not set a variable unless it will be used
On Fri, Jun 04, 2021 at 11:26:38AM +0200, Ricardo Ribalda wrote:
> clang-13 triggers the following warning:
>
> bench/inject-buildid.c:351:6: error: variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
> u64 len = 0;
>
> This patch sets the value to len only if it will be used afterwards.

My vote would be to kill that warning, what absolute shite.

\
 
 \ /
  Last update: 2021-06-04 11:37    [W:0.070 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site