Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netbsd-11 kernel build failure
On Thu, 8 Jan 2026 11:16:51 -0000 (UTC), Michael van Elst wrote:
> hauke%Espresso.Rhein-Neckar.DE@localhost (Hauke Fath) writes:
>
>> /u/sources/netbsd-11/src/sys/dev/acpi/pckbc_acpi.c:242:22: error:=20
>> 'handle' may be used uninitialized [-Werror=maybe-uninitialized]
>
>> I guess 'handle' should be initialized (with what?).
>
> It gets initialized, the compiler is just not smart enough to see it.
The assignment is conditional, so I find it hard to blame gcc here...
> Initializing it to ((ACPI_HANDLE)0) to set an invalid value is ok.
Initializing with NULL worked for me.
Cheerio,
Hauke
--
Hauke Fath <hauke%Espresso.Rhein-Neckar.DE@localhost>
Linnéweg 7
64342 Seeheim-Jugenheim
Germany
Home |
Main Index |
Thread Index |
Old Index