Hacker News new | ask | show | jobs
by legulere 3815 days ago
You should have -Werror enabled on debug builds when developing and disabled on release builds.
1 comments

Huh. I would think it to be the other way around. When debugging, let me comment stuff out without erroring due to an unused variable or an unused parameter. Let me use a C-style cast to check the bit representation of an object. Then when building the release build, enable -Werror to make sure that I'm not sweeping anything under the rug.