News for hackers. Stuff that matters.
Re:OpenMandriva, the first Clang-built Linux distribution by kartan on Sunday June 16, 2019 @04:15PM (#20197646)
Why not use static code analyzers? You run them in compilation time and warn you of uninitialized variables.

Initializing values just because seems wasteful. That's why global and static variables are already initialized in this way.

For me it would yet make sense that Gcc allows it even if it's not a very good practice it may have its uses.

Re:OpenMandriva, the first Clang-built Linux distribution by ndesaulniers on Sunday June 16, 2019 @05:06PM (#20197893)
Because static analyzers today are imprecise. We're considering where this makes sense to turn on in Android, and even within the Linux kernel.
Re:OpenMandriva, the first Clang-built Linux distribution by carlmr on Sunday June 16, 2019 @05:38PM (#20198060)
If you can I would at least advise running tests using memory sanitizer, which is also built in to newer clang versions. They're much more precise, but only catch problems occurring at runtime. also adress sanitizer for the out of bounds accesses, use after free bugs, memory leaks etc.
Re:OpenMandriva, the first Clang-built Linux distribution by ndesaulniers on Sunday June 16, 2019 @08:26PM (#20198829)
We do. Also, the people who built msan are literally the ones implementing the initialization patterns.
Re:OpenMandriva, the first Clang-built Linux distribution by carlmr on Tuesday June 18, 2019 @03:27AM (#20210437)
Nice, sorry, I didn't notice you actually meant working on Android.

Great work btw. I've found a few actual bugs with ASan and MSan already. Not once a false positive.