Instructs the compiler to halt compilation when num errors of a specified severity level or higher is reached.
.-nomaxerr---------------------. >>- -q--+-maxerr--=--num--+----------+-+----------------------->< | .-s-. | '-:--+-i-+-' +-w-+ '-e-'
where num must be an integer. Choices for severity level can be one of the following:
sev_level | Description |
i | Informational |
w | Warning |
e | Error (C only) |
s | Severe error |
If a severity level is not specified, the current value of the -qhalt option is used.
If the -qmaxerr option is specified more than once, the -qmaxerr option specified last determines the action of the option. If both the -qmaxerr and -qhalt options are specified, the -qmaxerr or -qhalt option specified last determines the severity level used by the -qmaxerr option.
An unrecoverable error occurs when the number of errors reached the limit specified. The error message issued is similar to:
1506-672 (U) The number of errors has reached the limit of ...
If -qnomaxerr is specified, the entire source file is compiled regardless of how many errors are encountered.
Diagnostic messages may be controlled by the -qflag option.
xlc myprogram.c -qmaxerr=10:w
xlc myprogram.c -qmaxerr=5
xlc myprogram.c -qmaxerr=3:ior:
xlc myprogram.c -qmaxerr=3 -qhalt=i
Related information