Purpose
Prevents specific informational or warning
messages from being displayed or added to the listing file, if one
is generated.
Syntax
.-nosuppress---------------------------.
>>- -q--+-suppress--+------------------------+-+---------------><
| .-:-----------. |
| V | |
'-=--+---message_num-+-+-'
'-cmpmsg----------'
Parameters
- message_num[:message_num ...]
- Suppresses the display of a specific compiler message (nnnn-mmm)
or a list of messages (nnnn-mmm[:nnnn-mmm ...]).
To suppress a list of messages, separate each message number with
a colon.
nnnn-mmm is the message number,
where:
- nnnn must be a four-digit integer between
1500 and 1585; this is the range of XL Fortran message numbers.
- mmm must be any three-digit integer
(with leading zeros if necessary).
- cmpmsg
- Suppresses the informational messages that report compilation
progress and a successful completion.
This suboption has no effect
on any error messages that are emitted.
Usage
In some situations, users may receive
an overwhelming number of compiler messages. In many cases, these
compiler messages contain important information. However, some messages
contain information that is either redundant or can be safely ignored.
When multiple error or warning messages appear during compilation,
it can be very difficult to distinguish which messages should be noted.
By using -qsuppress, you can eliminate messages
that do not interest you.
Note: - The compiler tracks the message numbers specified with -qsuppress.
If the compiler subsequently generates one of those messages, it will
not be displayed or entered into the listing.
- Only compiler and driver messages can be suppressed. Linker or
operating system message numbers will be ignored if specified with -qsuppress.
- To suppress IPA messages, enter -qsuppress before -qipa on
the command line.
- The -qhaltonmsg option has
precedence over -qsuppress. If you specify
both -qhaltonmsg and -qsuppress, messages that -qsuppress suppresses
are also printed and compilation stops.
Examples
@process nullterm
i = 1; j = 2;
call printf("i=%d\n", %val(i));
call printf("i=%d, j=%d\n", %val(i), %val(j));
end
Compiling this sample program would normally
result in the following output:
"t.f", line 4.36: 1513-029 (W) The number of arguments to "printf" differ
from the number of arguments in a previous reference. You should use the
OPTIONAL attribute and an explicit interface to define a procedure with
optional arguments.
** _main === End of Compilation 1 ===
1501-510 Compilation successful for file t.f.
When
the program is compiled with
-qsuppress=1513-029,
the output is:
** _main === End of Compilation 1 ===
1501-510 Compilation successful for file t.f.