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. Order 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 The -errwarn Flags
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. If you specify -errwarn alone, it is equivalent to -errwarn=%all.