C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-24
ERRORS
ERRORS
The ERRORS pragma directs the compiler to terminate compilation if it detects more
than a specified number of errors.
max-errors
specifies the maximum number of errors that the compiler is to generate before
terminating the compilation.
The pragma default settings are:
Usage Guidelines
The ERRORS pragma can be entered on the compiler RUN command line (not in
the source file) or be specified with the -Werrors flag of the c89 utility.
If you do not use the ERRORS pragma, the TNS C compiler completes a
compilation regardless of the number of errors it diagnoses.
ERRORS max-errors
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set for C
N.A. for C++
Not set for C
N.A. for C++
G-series TNS c89 utility Not set for C
N.A. for C++
Not set for C
N.A. for C++
TNS/R native C and C++ compilers ERRORS 100 ERRORS 100
Native c89 utility ERRORS 100 ERRORS 100
TNS/E native C and C++ compilers ERRORS 100 ERRORS 100