pTAL Reference Manual (H06.03+)
Compiler Directives
HP pTAL Reference Manual—523746-005
17-69
WARN
WARN
WARN
prints specific (or all) warning messages in the compiler listing.
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.
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
Default: WARN
Placement: Anywhere
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.
Dependencies: None
VST675.vsd
warning-number
WARN
NOWARN










