Sun WorkShop Compiler C 5.0 User's Guide

Options to Suppress Messages

You can use several lint options to suppress lint diagnostic messages. Messages can be suppressed with the -erroff option, followed by one or more tags. These mnemonic tags can be displayed with the -errtags=yes option.

The following table lists the options that suppress lint messages.

Table 5-5 lint Options and Messages Suppressed

Option 

Messages Suppressed 

-aassignment causes implicit narrowing conversion conversion to larger integral type may sign-extend incorrectly
-bstatement not reached (unreachable break and empty statements)
-hassignment operator "=" found where equality operator "==" was expected constant operand to op: "!" fallthrough on case statements pointer cast may result in improper alignment precedence confusion possible; parenthesize statement has no consequent: if statement has no consequent: else
-mdeclared global, could be static
-erroff=tagOne or more lint messages specified by tag
-uname defined but never used name used but not defined
-varguments unused in function
-xname declared but never used or defined