Re: netbsd-11 kernel build failure
Hauke Fath <[email protected]>
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Organization | Lacking |
| Message-ID | <[email protected]> |
On Thu, 8 Jan 2026 11:16:51 -0000 (UTC), Michael van Elst wrote: > [email protected] (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 <[email protected]> Linnéweg 7 64342 Seeheim-Jugenheim Germany