#pragma options halt
Stops compilation before producing any object, executable, or assembler source files if the maximum severity of compile-time messages equals or exceeds the severity you specify.
-qhalt syntax — C .-s-. >>- -qhalt--=--+-i-+------------------------------------------->< +-w-+ '-e-'
-qhalt=s
When the compiler stops as a result of the halt option, the compiler return code is nonzero. For a list of return codes, see Compiler return codes.
When -qhalt is specified more than once, the lowest severity level is used.
Diagnostic messages may be controlled by the -qflag option.
You can also instruct the compiler to stop compilation based on the number of errors of a type of severity by using the -qmaxerr option, which overrides -qhalt.
You can also use the -qhaltonmsg option to stop compilation according to error message number.
None.
xlc myprogram.c -qhalt=w