5 ms·
IIRC variables are left uninitialized to shave off cycles in the kernel. Compiler was issuing warnings that were not relevant so devs got used to ignore them.
by t0suj4 5y ago
IIRC variables are left uninitialized to shave off cycles in the kernel. Compiler was issuing warnings that were not relevant so devs got used to ignore them.
- atoav 5y agoI am unfamiliar with the Linux Kernel development policy and the details of C compilers, but if this is the issue then they have a severe tooling issue. This kind of stuff should be tested against. And especially in something as crucial as the Linux kernel i'd expect more guarantees than "a bunch of experts thought it was ok"
- WhyNotHugo 5y agoIgnoring warnings is always bad. If an individual warning is bogus, you add a an exception and an explanation. But if you ignore them in mass, then you're ignoring bugs.