This command suppresses C++ compiler warning messages and has no effect on error messages. This option applies to all warning messages whether or not they have been designated by -errwarn to cause a non-zero exit status.
t is a comma-separated list that consists of one or more of the following: tag, no%tag, %all, %none. Order is important; for example, %all,no%tag suppresses all warning messages except tag. The following table lists the -erroff values:
Table A–3 The -erroff Values
Value |
Meaning |
---|---|
tag |
Suppresses the warning message specified by this tag. You can display the tag for a message by using the -errtags=yes option. |
no%tag |
Enables the warning message specified by this tag. |
%all |
Suppresses all warning messages. |
%none |
Enables all warning messages (default). |
The default is -erroff=%none. Specifying -erroff is equivalent to specifying -erroff=%all.
For example, -erroff=tag suppresses the warning message specified by this tag. On the other hand, -erroff=%all,no%tag suppresses all warning messages except the messages identified by tag.
You can display the tag for a warning message by using the -errtags=yes option.
Only warning messages from the C++ compiler front-end that display a tag when the -errtags option is used can be suppressed with the -erroff option.
-errtags, -errwarn