SEVERITY | NOSEVERITY (C only)
Category
Listings, messages, and compiler information
Pragma equivalent
None.
Purpose
Changes the default severities for certain user-specified messages, if these messages are generated by the compiler.
Syntax
Defaults
NOSEVERITY
When NOSEVERITY is in effect, all the previous message severity changes are cleared.
Parameters
- I
- Specifies the message severity level of informational (I).
- W
- Specifies the message severity level of warning (W).
- E
- Specifies the message severity level of error (E).
- Message Number
- Represents a valid compiler message number, which must be in the
following format:
abc****
Where:abc
is the three-letter code prefix representing the message types.****
is the four-digit message number.
Usage
The SEVERITY option allows you to set the severity for certain messages that you specified. The compiler will use the new severity if the specified messages are generated by the compiler. You can use this option to match your build process rules for cases which are known not to be problems.
The new severity can be higher or lower than the default compiler severity. When you decrease message severities, you can only decrease informational (I) and warning (W) messages. The (E) level messages cannot be decreased.
Predefined macros
None.
Examples
prototype.c
normally
results in the following output: WARNING CCN3304 ./prototype.c:2 No function prototype given for "malloc".
You
can decrease the severity of the message to INFORMATIONAL by compiling
with: xlc prototype.c -qseverity=i=CCN3304