Set minimum warning level.
Syntax
-w level | all | none | param | Escape | pedantic | Next | funcptr | constness
Parameters
level
Warning messages only with a level equal or greater to this value will be output.
all
Equivalent to specifying a level of negative one (-1).
none
Suppresses all warnings.
param
Warn when procedure parameters aren't specified with either
ByVal or
ByRef.
Escape
Warn when string literals contain any number of escape characters (\).
pedantic
Equivalent to specifying the
param and
Escape arguments, plus length checking of parameters passed
ByVal and of any
CPtr converting to pointer only.
Next
Warn when
Next is followed by an identifier.
funcptr
Warn on mismatched procedure pointers, including conversions in
Cast and
CPtr expressions. Implies '-w all'. Experimental. Behaviour may change in future versions.
constness
Warn when
Const (Qualifier) is discarded in an assignment. Implies '-w funcptr' and '-w all'. Behaviour may change in future versions.
Description
The -w compiler option determines which compiler warnings, if any, are output. Each possible warning is associated with a warning level, starting from negative one (-1) and increasing with the potential problems that may occur.
The param, Escape, pedantic, Next, funcptr, and constness arguments provide additional warnings not ordinarily output, even by default.
The default, if the -w option is not specified, is as if -w 0 was used. The -w option can be specified multiple times. Warning messages having a level of -1 are not shown by default.
-w none, or a significantly high level value will have the effect of suppressing all warning messages.
See also