Vous êtes sur la page 1sur 1

By default, all warnings are off.

Warnings can't be enabled or disabled at run-time; the settings are determined when a script
loads. Therefore, the location in the script is not significant (and, like other # directives, #Warn
cannot be executed conditionally).
However, the ordering of multiple #Warn directives is significant: the last occurrence that sets a
given warning determines the mode for that warning. So, for example, the two statements below
have the combined effect of enabling all warnings except UseEnv:
#Warn All
#Warn UseEnv, Off

EnvSet EnvVar, 1
x := EnvVar ; Okay since #NoEnv has not been used.
x := NotAnEnvVar ; Warning.

Vous aimerez peut-être aussi