halt

Option Type Default Value #pragma options C C++
-qoption halt=s HALT=severity x x

Syntax

    -qhalt=severity 
    HALT=severity 

Purpose
Instructs the compiler to stop after the compilation phase when it encounters errors of specified severity or greater.

Notes
severity is one of:

severity Description
i Information
w Warning
e Error
s Severe error
u Unrecoverable error

When the compiler stops as a result of the -qhalt option, the compiler return code is nonzero.

When -qhalt is specified more than once, the lowest severity level is used.

The -qhalt option can be overridden by the -qmaxerr option.

Diagnostic messages may be controlled by the -qflag option.

Example
To compile myprogram.c so that compilation stops if a warning or higher level message occurs, enter:

xlC myprogram.c -qhalt=w


List of Batch Compiler Options and Their Defaults
Options that Specify Compiler Output
Message Severity Levels and Compiler Response
Equivalent Batch Compile-Link and Incremental Build Options