lkml.org 
[lkml]   [2017]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] gpio: acpi: work around false-positive -Wstring-overflow warning
On Wed, Sep 6, 2017 at 5:52 PM, Joe Perches <joe@perches.com> wrote:
> On Wed, 2017-09-06 at 17:47 +0200, Arnd Bergmann wrote:

>> As suggested by Andy, this changes the format string to have a fixed length.
>> Since modifying the range check did not help, I also opened a bug against
>> gcc, see link below.
>
> The code has
>
> int pin
>
> does changing pin to unsigned int matter?

No difference, see also the gcc bugzilla report.

Arnd

\
 
 \ /
  Last update: 2017-09-06 21:54    [W:6.184 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site