4 ms·
If they get overflow errors then your build process does not have the right warnings enabled/logged. Suggestion: enable -Wall and treat warnings as errors.
by 0x12 15y ago
If they get overflow errors then your build process does not have the right warnings enabled/logged.
Suggestion: enable -Wall and treat warnings as errors.
- pwaring 15y agoHandily, gcc has -Werror, which turns all warnings into errors. So -Wall -Wextra -Werror should catch most things.
- dodedo 15y agoOf course. You and I know they're doing it wrong, however sirclueless suggested above that type correctness is "arcane" and asks if "we would really care" when it comes to type issues in printf format strings.
- aninteger 15y agoExcept if you're using gcc (mingw) on Windows: gcc -v shows that it's been configured with --disable-werror