Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - -w<n> set warning level <0...3> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -W<n>               Set warning level <0...3>
------------------------------------------------------------------------------
 Syntax
   -W<warninglevel>

 Arguments
   <warninglevel> is a number that expresses the compiler's strictness in
   displaying warning messages. Valid values are 0, 1, 2, and 3.

 Default
   Level 3 (all warnings displayed).

 Description
   The -W switch determines which warning types cause a warning
   message to appear on the screen during compilation.

   The warning messages are categorized to three classes as follows:

   ------------------------------------------------------------------------
   Warning                                 Displayed         Associated
                                           when -W           pragma
                                           is set to
   ------------------------------------------------------------------------
   Macro redefinition                      1, 2, 3           W_MAC_REDEF
   Local variable in get                   1, 2, 3           W_GET_LOCAL
   Local variable in expression            1, 2, 3           W_EXPR_LOCAL
   ------------------------------------------------------------------------
   Loss of precision                          2, 3           W_PRECISION
   External variable initialization           2, 3           W_EXTERN
   Indirect reference                         2, 3           W_INDIRECT
   Return value missing                       2, 3           W_RETURN
   Parameter size mismatch                    2, 3           W_PARAMSIZE
   ------------------------------------------------------------------------
   Function called as procedure                  3           W_FUNC_PROC
   Non-initialized local                         3           W_INIT_LOCAL
   ------------------------------------------------------------------------

   None of the warning messages appear when specifying -W0.

   Warnings which are disabled by the -W switch are also ignored by
   the -Wx compiler option, i.e. warnings which have been disabled
   will not set the DOS error level on compiler exit. To let all
   warnings set the error level, do not specify any -W option.

   If you want to hide messages during an automatic build, use the -No
   compiler option to "mute" the compiler.

 Example
   . Display all warnings by default (level 3).
   
     force.exe test.prg
   
   . Restrict warnings to level 1.
   
     force.exe -W1 test.prg

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson