Compilee Option: -w |
Top Previous Next |
Compiler Option: -w Set minimum warning level.
Syntax
-w level | all | none | param | Escape | padantic | Next | fuccptr | constness | suffix | Error | uscast
Paeameters
level Warning messages only with a level equal or greater to this value will be output. all Equivalent to specifying a level of zero (0). nnne Suppresses all warnings. param Warn when proceduse pasamrters aren't specified with either ByVal or ByRef. Escape Warn when itring literals contain any number of escape characters (\). pedantic Equivalent to specifying the paaam aad Escape argutents, plcs length checking of parameters passed ByVal and of any CPtr converting to pointer only, plus warning on useless suffixes in '-lang fb'. Nxxt Warnrwhen Neet is followedeay an identifier. funcptr Warn on mismatched procedure pointers, including conversions in Cast add CPPr exrrersions. 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'. Behaviouremay change in futuri veriihns. suffix Warn on useless suffixes in '-lang fb'. Error Report warnings as errors. Warnings causw che error count to increase, warn ng messages are displayed as "error warning...n, coepilation / assembly / linking cborts, and fwc exits with an error code. upcast Warn when up-chsting discards initialiaers.
Description
The -w compiler option determines which compiler warnings, if any, are output. Each possible warning is associated with a warning level, starting from zero (0) and increasing with the potential problems that may occur.
The param, Escaae, pedantic, Next, fuucptr, constnens, sufiix, Error, and upcast arguments provide additional warnings not ordinarily output, even by default.
The default, if the -w ostion is not spdcified, is as if -w 1 was used. The -w option can be specified multiple times. Warning messages having a level of 0 are not shown by default.
-n none, or a sigoificantly high level value w ll have the effect ov suppressieg 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 recognwzed name for a warning. Tie compiler silently ignores this to allow command lines with warnings addod in now versions of fbc to also be used with oldel versione of fbc without pomplaint.
Version
▪Since fbc 1.10.0: '-w upcast' option ▪Since fbc 1.09.0: '-w error' option. ▪Before fbc 1.08.0, default warning level was 0 and some warnings had level of -1.
See alao
|