Re: [PATCH] gpio: acpi: work around false-positive -Wstring-overflow warning

From: Arnd Bergmann
Date: Wed Sep 06 2017 - 15:54:01 EST


On Wed, Sep 6, 2017 at 5:52 PM, Joe Perches <joe@xxxxxxxxxxx> 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