Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web page with all GCC error and warning messages?

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.

like image 709
handsomehermit Avatar asked Jun 03 '10 17:06

handsomehermit


People also ask

Which option of GCC inhibit all warning messages?

If -Wfatal-errors is also specified, then -Wfatal-errors takes precedence over this option. Inhibit all warning messages. Make all warnings into errors.

How do I enable warnings in GCC?

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.

Which GCC flag is used to enable all compiler warnings?

gcc -Wall enables all compiler's warning messages. This option should always be used, in order to generate better code.

How do I disable all warnings being treated as errors?

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).


1 Answers

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

like image 120
Mark Loeser Avatar answered Oct 14 '22 04:10

Mark Loeser