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 1. Warning And Error Options
Option 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
-Wpedantic The acceptance of non-standard language extensions