lkml.org 
[lkml]   [2014]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] misc: suppress build warning
On Thu, Dec 4, 2014 at 2:59 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Thursday 04 December 2014 14:38:30 Lad, Prabhakar wrote:
>> this patch fixes following build warning:
>>
>> drivers/misc/ioc4.c: In function ‘ioc4_probe’:
>> drivers/misc/ioc4.c:194:16: warning: ‘start’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>> period = (end - start) /
>> ^
>> drivers/misc/ioc4.c:148:11: note: ‘start’ was declared here
>> uint64_t start, end, period;
>>
>> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
>
> Please explain why the compiler thinks there is a bug, why you
> are sure that there isn't, and why you picked '0' as the
> initialization value.
>
Its a false positive, to suppress the warning '0' was picked.

Thanks,
--Prabhakar Lad


\
 
 \ /
  Last update: 2014-12-04 16:41    [W:0.566 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site