Use the Warnings panel to control how the compiler reports the error and warning messages.
The following table lists and describes the various options available on the Warnings panel.
| Option | Description |
|---|---|
| Check syntax only (-fsyntax-only) | Check this option if you want to check the syntax of commands and throw a syntax error. |
| Pedantic (-pedantic) | Check this option if you want to issue all the warnings demanded by strict ISO C and ISO C++; reject all programs that use forbidden extensions, and some other programs that do not follow ISO C and ISO C++. For ISO C, follows the version of the ISO C standard specified by any `-std' option used. |
| Pedantic warnings as erros (-pedantic-errors) | Check this option if you want to issue all the mandatory diagnostics, and make all mandatory diagnostics into errors. This includes mandatory diagnostics that GCC issues without -pedantic but treats as warnings. |
| Inhibit all warnings (-w) | Check this option if you want to inhibit the display of warning messages. |
| All warnings (-Wall) | Check this option to turn on all optional warnings which are desirable for normal code. At present this is -Wcomment, -Wtrigraphs, -Wmultichar and a warning about integer promotion causing a change of sign in #if expressions. NOTE : Many of the preprocessor's warnings are on by default and have no options to control them. |
| Extra warnings (-Wextra) | Check this option to enable any extra warnings. |
| Warning as errors (-Werror) | Check this option if you want to make all warnings into hard errors. Source code which triggers warnings will be rejected. |