pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
NOWARN
suppresses specific (or all) warning messages in the compiler listing.
warning-number
is the number of a warning message. The default is all warning messages.
If warning-number is outside the range of all pTAL warnings and all TAL warnings, the
compiler issues a warning. If warning-number is inside either range but not assigned
warning text, the compiler ignores the WARN directive. For an explanation of how the compiler
handles TAL warnings, see the pTAL Conversion Guide.
WARNDefault:
AnywherePlacement:
Scope:
• WARN applies to subsequent code until overridden by NOWARN
• NOWARN applies to subsequent code until overridden by WARN; however:
To print selected warnings, you must specify WARN before any NOWARN
directives. If you specify NOWARN first, subsequent WARN
warning-number directives have no effect.
NoneDependencies:
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.
If NOWARN is active, 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.
The following directive specifies that the compiler does not print warning message 12:
?NOWARN 12
WARN 425