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'.
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:
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.
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).
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:
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.
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:
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.
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.
##**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:
Note that the ##**param**##, ##**escape**##, ##**pedantic**## and ##**next**## arguments provide additional warnings not ordinarily output, even by default.
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:
Additions:
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]]
Warn when ##[[KeyPgNext|Next]]## is followed by an identifier.
- [[CompilerCmdLine|Using the Command Line]]
Deletions:
Warn when ##[[KeyPgNext Next]]## is followed by an identifier.
- [[CompilerCmdLine Using the Command Line]]
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:
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.
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:
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"}}