Oracle® Solaris Studio 12.4: C User's Guide

Exit Print View

Updated: March 2015
 
 

4.3.15 -errwarn=t

If the indicated warning message is issued, lint exits with a failure status. t is a comma-separated list that consists of one or more of the following: tag, no%tag, %all, %none. The order of the tags is important. For example %all,no%tag causes lint to exit with a fatal status if any warning except tag is issued. The following table list the -errwarn values.

Table 4-6   -errwarn Flags
tag Value
Meaning
tag
Cause lint to exit with a fatal status if the message specified by this tag is issued as a warning message. Has no effect if tag is not issued.
no%tag
Prevent lint from exiting with a fatal status if the message specified by tag is issued only as a warning message. Has no effect if tag is not issued. Use this option to revert a warning message that was previously specified by this option with tag or %all from causing lint to exit with a fatal status when issued as a warning message.
%all
Cause lint to exit with a fatal status if any warning messages are issued. %all can be followed by no%tag to exempt specific warning messages from this behavior.
%none
Prevents any warning message from causing lint to exit with a fatal status should any warning message be issued.

The default is -errwarn=%none. Specifying -errwarn alone is equivalent to -errwarn=%all.