Sun Studio 12: C User's Guide

4.3.12 -erroff=tag(, tag)

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 4–4 The -erroff Flags

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”.