Oracle® Solaris Studio 12.4: C User's Guide

Exit Print View

Updated: March 2015
 
 

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