C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-24
ERRORS
°
If you specified a DEFINE name for the name of the source file, the name of
the file to which the DEFINE evaluated appears in this entry
°
The EDIT line number in which the error or warning occurred
°
The column number in the line where the compiler detected the error/warning
°
The error or warning message text
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.
EXTENSIONS
The EXTENSIONS pragma allows source code to use syntax extensions and standard
library extensions defined by HP.
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
[NO]EXTENSIONS