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 - -wx treat warnings as errors http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -Wx                 Treat warnings as errors
------------------------------------------------------------------------------
 Syntax
   -Wx

 Arguments
   None.

 Default
   Do not treat warnings as errors.

 Description
   The -Wx switch instructs the compiler to set the DOS error level when
   warnings were encountered. This option can be used to suspend make
   utilities not only on errors, but also on warnings. By default, when
   Force issues a warning message, compilation continues, and (provided
   that no errors were found) it leaves the DOS errorlevel value
   unchanged (0).

   When running compiles from a batch file, or using a make utility, the
   compiler messages may scroll off the screen too fast to read. Using
   the -Wx option causes the compiler to set the errorlevel to a value
   greater than zero, even when only warning errors were issued, thus
   halting the make process.

 Example
   . Set the exit code when any warning message is issued.
   
     force.exe -Wx test.prg
   
   . Do not treat warnings as errors (override the effect of a -Wx switch in
     force.cfg).
   
     force.exe -Wx- test.prg

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