JanKusanagi

Useful GCC warning options

JanKusanagi at

Useful GCC warning options not enabled by -Wall -Wextra


GCC can warn about questionable constructs in the source code, but most such warnings are not enabled by default – developers need to use the options -Wall and -Wextra to get all generally useful warnings. There are many additional warning options that are not enabled by -Wall -Wextra as they may produce too many false positive warnings or be targeted to a specific obscure use case, but I think a few of them (listed below) may be useful for general use. ”


kristerw.blogspot.com/2017/09/useful-gcc-warning-options-not-enabled.html

We enable any warning flag we can get our hands on, and then we don't use -Werror, but we track the number of warnings. If you knowingly introduce a warning, but you decide that instance of the warning is ok, you need to explicitly raise the ceiling. You can't merge if you're above the ceiling.

Warning levels are lowered nightly, to reduce the risk that you unknowingly introduce a warning just because someone else removed one.

clacke@libranet.de ❌ at 2017-10-06T01:49:59Z