TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-96
Usage Considerations
Usage Considerations
WARN or NOWARN can appear in the compilation command or anywhere in the
source code.
To print selected warnings, you must specify WARN before any NOWARN directives. If
you specify NOWARN first, any subsequent WARN warning-number directives have no
effect.
You can use NOWARN when a compilation produces a warning and you have
determined that no real problem exists. Before the source line that produces the
warning, specify NOWARN and the number of the warning you want suppressed.
Following that source line, specify a WARN directive.
NOWARN Statistics
If NOWARN is in effect, the compiler records the number of suppressed and
unsuppressed warnings. The compilation statistics at the end of the compiler listing
include the following counts:
Number of unsuppressed compiler warnings = count
Number of warnings suppressed by NOWARN = count
Unsuppressed compiler warnings are compiler warnings that are not suppressed by
NOWARN directives. The summary does not report the location of the last compiler
warning.
If no compiler errors and no unsuppressed compiler warnings occur, the completion
code is zero.
Example of WARN Directive
This example specifies that the compiler does not print warning message 12:
?NOWARN 12