Removing uninitialized_var()
Removing uninitialized_var()
Posted Dec 21, 2012 23:13 UTC (Fri) by apoelstra (subscriber, #75205)In reply to: Removing uninitialized_var() by hummassa
Parent article: Removing uninitialized_var()
This is not always true. For a small-enough function (or small-enough block), a programmer can probably build a mental parse tree just as well as the compiler can -- and then, because he is a human gifted with all manner of high-level knowledge and context, he can easily see things that the compiler might miss.
And in my experience, "small enough" includes many non-trivial functions of 5-10 lines. Also in my experience, these are the sorts of functions that trigger uninitialized variable warnings.
