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=n How many errors are output before terminating compilation.
-mwarn=level The threshold at which warnings are output.
-w The suppression of all warning messages.
-W[no-]error Promote warnings to errors.
-Wpedantic The acceptance of non-standard language extensions.