Compiler Option: -w

Set minimum warning level.

-w level | all | none | param | escape | pedantic | next | funcptr | constness | suffix

Warning messages only with a level equal or greater to this value will be output.
Equivalent to specifying a level of negative one (-1).
Suppresses all warnings.
Warn when procedure parameters aren't specified with either ByVal or ByRef.
Warn when string literals contain any number of escape characters (\).
Equivalent to specifying the param and escape arguments, plus length checking of parameters passed ByVal and of any Cptr converting to pointer only, plus warning on useless suffixes in '-lang fb'.
Warn when Next is followed by an identifier.
Warn on mismatched procedure pointers, including conversions in CAST and CPTR expressions. Implies '-w all'. Experimental. Behaviour may change in future versions.
Warn when CONST (Qualifier) is discarded in an assignment. Implies '-w funcptr' and '-w all'. Behaviour may change in future versions.
Warn on useless suffixes in '-lang fb'.

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.
fbc does not issue warning or error if the warning name itself is not valid. For example -w flarg, is not a recognized name for a warning. The compiler silently ignores this to allow command lines with warnings added in new versions of fbc to also be used with older versions of fbc without complaint.

For fbc version >= 1.08: Warning level for all warnings is increased by 1. Default warning level is 1 (previously, default warning level was 0 and some warnings had level of -1).

See also:
Back to Compiler Options
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki phatcode