3 ms·
The compiler and static analyzer nowadays can do a lot more than that, it can catch typos, dead ends, nonsensical statements, memory management issues (such as
by SeoxyS 14y ago
The compiler and static analyzer nowadays can do a lot more than that, it can catch typos, dead ends, nonsensical statements, memory management issues (such as leaks or usage of a dangling pointer), unguarded implicit casts or assignments in if clauses, and a lot more. It's saved my ass countless times, catching bugs before they ever hit production.