The -warnaserror+ option treats all warnings as errors
-warnaserror[+|-][:warning-list]
Any messages that would ordinarily be reported as warnings are instead reported as errors, and the build process is halted (no output files are built).
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.
Optionally, if you want only a few specific warnings to be treated as errors, you may specify a comma-separated list of warning numbers to treat as errors.
Use -warn to specify the level of warnings that you want the compiler to display. Use -nowarn to disable certain warnings.
1.Open the project's Properties page.
2.Click the Build property page.
3.Modify the "Warnings As Errors" property.
4.Click here to see the property page
Compile in.prg and have the compiler display no warnings:
xsc -warnaserror in.prg
xsc -warnaserror:642,649,652 in.prg