Revision history for CompilerOptw


Revision [24541]

Last edited on 2020-09-23 20:00:08 by JeffMarshall [warning option ignores invalid warning names]
Additions:
##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.


Revision [24311]

Edited on 2020-08-17 10:55:31 by fxm [invalid suffixes due to '-lang fb' are now pedantic warning only specified with '-w pedantic' or '-w suffix']
Additions:
**-w** //level// | **all** | **none** | **param** | **escape** | **pedantic** | **next** | **funcptr** | **constness** | **suffix**
Equivalent to specifying the ##**param**## and ##**escape**## arguments, plus length checking of parameters passed ##[[KeyPgByval|ByVal]]## and of any ##[[KeyPgCptr|Cptr]]## converting to pointer only, plus warning on useless suffixes in '-lang fb'.
##**suffix**##
Warn on useless suffixes in '-lang fb'.
Deletions:
**-w** //level// | **all** | **none** | **param** | **escape** | **pedantic** | **next** | **funcptr** | **constness**
Equivalent to specifying the ##**param**## and ##**escape**## arguments, plus length checking of parameters passed ##[[KeyPgByval|ByVal]]## and of any ##[[KeyPgCptr|Cptr]]## converting to pointer only.


Revision [23774]

Edited on 2019-12-11 10:07:22 by fxm [predisposed for fbc version 1.08]
Additions:
##-w none##, or a significantly high ##//level//## value will have the effect of suppressing all warning messages.
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).
Deletions:
##-w none##, or a significantly high ##//level//## value will have the effect of suppressing all warning messages.


Revision [22479]

Edited on 2018-09-03 18:37:59 by JeffMarshall [add none, funcptr, min value for warning level]
Additions:
**-w** //level// | **all** | **none** | **param** | **escape** | **pedantic** | **next** | **funcptr** | **constness**
Warning messages only with a level equal or greater to this value will be output.
Equivalent to specifying a ##//level//## of negative one (##-1##).
##**none**##
Suppresses all warnings.
##**funcptr**##
Warn on mismatched procedure pointers, including conversions in ##[[KeyPgCast|CAST]]## and ##[[KeyPgCptr|CPTR]]## expressions. Implies '-w all'. Experimental. Behaviour may change in future versions.
Warn when ##[[KeyPgConstQualifier|CONST (Qualifier)]]## is discarded in an assignment. Implies '-w funcptr' and '-w all'. Behaviour may change in future versions.
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.
Deletions:
**-w** //level// | **all** | **param** | **escape** | **pedantic** | **next** | **constness**
Warning messages only with a level equal or greater to this value will be output.
Equivalent to specifying a ##//level//## of zero (##0##).
Warn when ##[[KeyPgConstQualifier|CONST (Qualifier)]]## is discarded in an assignment.
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. A significantly high ##//level//## value will have the effect of suppressing all warning messages.
Note that the ##**param**##, ##**escape**##, ##**pedantic**##, ##**next**## and ##**constness**## arguments provide additional warnings not ordinarily output, even by default.
If the ##**-w**## option is not specified, it's as if ##**-w 0**## was used. The ##**-w**## option can be specified multiple times.


Revision [22452]

Edited on 2018-08-31 07:52:07 by fxm [Added '-w constness' compiler option]
Additions:
**-w** //level// | **all** | **param** | **escape** | **pedantic** | **next** | **constness**
##**constness**##
Warn when ##[[KeyPgConstQualifier|CONST (Qualifier)]]## is discarded in an assignment.
Note that the ##**param**##, ##**escape**##, ##**pedantic**##, ##**next**## and ##**constness**## arguments provide additional warnings not ordinarily output, even by default.
Deletions:
**-w** //level// | **all** | **param** | **escape** | **pedantic** | **next**
Note that the ##**param**##, ##**escape**##, ##**pedantic**## and ##**next**## arguments provide additional warnings not ordinarily output, even by default.


Revision [21969]

Edited on 2017-11-04 11:07:13 by fxm [Complemented 'pedantic' definition]
Additions:
Equivalent to specifying the ##**param**## and ##**escape**## arguments, plus length checking of parameters passed ##[[KeyPgByval|ByVal]]## and of any ##[[KeyPgCptr|Cptr]]## converting to pointer only.
Deletions:
Equivalent to specifying the ##**param**## and ##**escape**## arguments.


Revision [20770]

Edited on 2016-03-12 11:28:12 by fxm [Formatting]
Additions:



Revision [19958]

Edited on 2016-02-10 15:46:52 by DkLwikki [Update link format]
Additions:
Warn when procedure parameters aren't specified with either ##[[KeyPgByval|ByVal]]## or ##[[KeyPgByref|ByRef]]##.
Warn when ##[[KeyPgNext|Next]]## is followed by an identifier.
- [[CompilerCmdLine|Using the Command Line]]
Deletions:
Warn when procedure parameters aren't specified with either ##[[KeyPgByval ByVal]]## or ##[[KeyPgByref ByRef]]##.
Warn when ##[[KeyPgNext Next]]## is followed by an identifier.
- [[CompilerCmdLine Using the Command Line]]


Revision [14589]

Edited on 2010-05-22 15:20:50 by DkLwikki [fixed a typo]
Additions:
If the ##**-w**## option is not specified, it's as if ##**-w 0**## was used. The ##**-w**## option can be specified multiple times.
Deletions:
If the ##**-w**## option is not specified, it's as if ##**-w 0**## was used. The ##**-w**## option can be specifies multiple times.


Revision [13871]

Edited on 2008-11-07 00:07:34 by LaananFisher [fixed: warning levels; clarified param/escape/pedantic/next args]
Additions:
**-w** //level// | **all** | **param** | **escape** | **pedantic** | **next**
Warning messages only with a level equal or greater to this value will be output.
##**all**##
Equivalent to specifying a ##//level//## of zero (##0##).
##**param**##
Warn when procedure parameters aren't specified with either ##[[KeyPgByval ByVal]]## or ##[[KeyPgByref ByRef]]##.
##**escape**##
Warn when string literals contain any number of escape characters (##\##).
##**pedantic**##
Equivalent to specifying the ##**param**## and ##**escape**## arguments.
##**next**##
Warn when ##[[KeyPgNext Next]]## is followed by an identifier.
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. A significantly high ##//level//## value will have the effect of suppressing all warning messages.
Note that the ##**param**##, ##**escape**##, ##**pedantic**## and ##**next**## arguments provide additional warnings not ordinarily output, even by default.
If the ##**-w**## option is not specified, it's as if ##**-w 0**## was used. The ##**-w**## option can be specifies multiple times.
Deletions:
**-w** < //level// >
The warning level. ##0## | ##1## | ##all## | ##pedantic## | ##param## | ##escape## | ##next##
The ##-w## compiler option set minimum warning level. The default is ##-w 0##
{{table columns="2" cellpadding="1" cells="level;description;0;shows all compiler warnings;1;hide compiler warnings;all;shows all compiler warnings;param;show extra syntax warnings for BYVAL/BYREF parameter modes only;escape;show extra syntax warnings for escape sequences only;pedantic;show param and escape syntax warnings;next;show extra syntax warnings for NEXT statement only"}}


Revision [12764]

The oldest known version of this page was created on 2008-03-31 14:19:35 by CountingPine [fixed: warning levels; clarified param/escape/pedantic/next args]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode