4.6.4 Options for Controlling Warnings and Errors

Warnings are diagnostic messages that report constructions that are not inherently erroneous, but that are risky or suggest there may have been an error.

The options shown in the table below control the messages produced by the compiler and are discussed in the sections that follow.

Table 4-21. Warning And Error Options
Option

(links to explanatory section)

Controls
-fmax-errors=nHow many errors are output before terminating compilation.
-mwarn=levelThe threshold at which warnings are output.
-W[no-]msgWhether a message is enabled or disabled.
-wThe suppression of all warning messages.
-W[no-]errorPromote warnings to errors.
-WpedanticThe acceptance of non-standard language extensions.