Suppresses or enables lint error messages.
t is a comma-separated list that consists of one or more of the following: tag, no%tag, %all, %none.
Table 5-3 The -erroff Values
Value |
Meaning |
---|---|
tag |
Suppresses the message specified by this tag. You can display the tag for a message by using the -errtags=yes option. |
no%tag |
Enables the message specified by this tag |
%all |
Suppresses all messages |
%none |
Enables all messages. This is the default. |
The default is -erroff=%none. Specifying -erroff is equivalent to specifying -erroff=%all.
Examples:
% lint -erroff=%all,no%E_ENUM_NEVER_DEF,no%E_STATIC_UNUSED
prints only the messages "enum never defined" and "static unused", and suppresses other messages.
% lint -erroff=E_ENUM_NEVER_DEF,E_STATIC_UNUSED
suppresses only the messages "enum never defined" and "static unused".