3 ms·
You can enable -Werror with a known compiler all you want for development, but if you package and distribute your sources then turn that off by default.
by steerablesafe 5y ago
You can enable -Werror with a known compiler all you want for development, but if you package and distribute your sources then turn that off by default.
- Cthulhu_ 5y agoIf you're still getting warnings that you think should not be ignored (which is -Werror iirc) in your build by the time you're ready to distribute, you need to take a hard look at your development and merge process, too. Ideally nothing goes into the main branch if it's not done and ready to be deployed. One of the things we finally managed to do at a previous job was "master=live", where a build was automatically triggered that put the product ('just' a website, but still) live in production. While I'm not advocating this per se, you SHOULD put everything in place so that you could do that. (see also: continuous integration vs continuous deployment).
- remram 5y agoCompilers get new diagnostics all the time.