Export (0) Print
Expand All

/warnaserror

Treats warnings as errors.

/warnaserror[+ | -]

Arguments

+ | -
The /warnaserror+ option treats all warnings as errors.

Remarks

Any messages that would ordinarily be reported as warnings are instead reported as errors. No output files are created. The build continues in order to identify as many errors/warnings as possible.

By default, /warnaserror- is in effect, which causes warnings to not prevent the generation of an output file. /warnaserror, which is the same as /warnaserror+, causes warnings to be treated as errors.

Use /warn to specify the level of warnings that you want the compiler to display.

Example

Compile in.js and have the compiler display no warnings:

jsc /warnaserror in.js

See Also

JScript Compiler Options

Show:
© 2015 Microsoft