Re: [PATCH] acpi: fix false-positive -Wuninitialized warning

2019-07-18 Thread Rafael J. Wysocki
On Friday, July 12, 2019 11:01:21 AM CEST Arnd Bergmann wrote: > clang gets confused by an uninitialized variable in what looks > to it like a never executed code path: > > arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is > uninitialized when used here [-Werror,-Wuninitialized] >

Re: [PATCH] acpi: fix false-positive -Wuninitialized warning

2019-07-12 Thread Nathan Chancellor
On Fri, Jul 12, 2019 at 11:01:21AM +0200, Arnd Bergmann wrote: > clang gets confused by an uninitialized variable in what looks > to it like a never executed code path: > > arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is > uninitialized when used here [-Werror,-Wuninitialized] >

Re: [PATCH] acpi: fix false-positive -Wuninitialized warning

2019-07-12 Thread Andy Shevchenko
On Fri, Jul 12, 2019 at 11:01:21AM +0200, Arnd Bergmann wrote: > clang gets confused by an uninitialized variable in what looks > to it like a never executed code path: > > arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is > uninitialized when used here [-Werror,-Wuninitialized] >

[PATCH] acpi: fix false-positive -Wuninitialized warning

2019-07-12 Thread Arnd Bergmann
clang gets confused by an uninitialized variable in what looks to it like a never executed code path: arch/x86/kernel/acpi/boot.c:618:13: error: variable 'polarity' is uninitialized when used here [-Werror,-Wuninitialized] polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH;