commit | e630555a7812731e040f862858060ce49d0d7b9f | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Wed Oct 30 17:26:00 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Wed Oct 30 17:26:00 2019 +0900 |
tree | 89cb40fe455588b4c0dbd14cf8cd3ee3e7195237 | |
parent | 9505b12c4401216ddf53d52bc9fe2ac8e0183159 [diff] |
Enable pedantic checks for uninitialized variables The -Wsometimes-uninitialized and -Wconditional-uninitialized flags are not enabled with -Wall because they lead to some false positives. However, these have become exceedingly rare. I found only two such cases in the netd codebase and a single one in DnsResolver. Access to uninitialzied memory is one of the nastiest forms of undefined behavior in C, it's time to eradicate it. Change-Id: Iea5cf450e0e3c1f2443c06b1fac670290abe2e64