I need a link to a webpage that lists all the error messages and warnings GCC can show; the actual messages, not descriptions.
It would be preferable if the list is in the order of most frequently encountered diagnostics.
If -Wfatal-errors is also specified, then -Wfatal-errors takes precedence over this option. Inhibit all warning messages. Make all warnings into errors.
To enable all warnings, use following list of warnings (probably some warnings are duplicated, because I didn't bother to filter warnings enabled by -Wall ). Show activity on this post. Someone has created a set of tools for determining the complete set of warnings for a given GCC or Clang version.
gcc -Wall enables all compiler's warning messages. This option should always be used, in order to generate better code.
You can make all warnings being treated as such using -Wno-error. You can make specific warnings being treated as such by using -Wno-error=<warning name> where <warning name> is the name of the warning you don't want treated as an error. If you want to entirely disable all warnings, use -w (not recommended).
I don't think you are going to find a page that describes all of them, but here's a page that has at least some of the most common: http://www.network-theory.co.uk/docs/gccintro/gccintro_94.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With