by nanumbat · 4y ago · 0 comments
Also, turn on all compiler warning flags all the time. Some compiler warnings aren't triggered unless optimization is enabled, so turn that on every now and then during development and see if any warnings pop. If you're handed thousands of lines of someone else's code and it's riddled with warnings, fix them first.
If you can't, capturing them in a way that lets you do a diff at least helps you notice when you've introduced a new warning. The ease of doing this depends more than a bit on the particular ecosystem.