Intel® C++ Compiler XE 13.1 User and Reference Guides

diag-error-limit, Qdiag-error-limit

Specifies the maximum number of errors allowed before compilation stops.

IDE Equivalent

Windows: Diagnostics > Error Limit

Linux: Compilation Diagnostics > Set Error Limit

OS X: Diagnostics > Error Limit

Architectures

All

Syntax

Linux and OS X:

-diag-error-limitn

-no-diag-error-limit

Windows:

/Qdiag-error-limit:n

/Qdiag-error-limit-

Arguments

n

Is the maximum number of error-level or fatal-level compiler errors allowed.

Default

30

A maximum of 30 error-level and fatal-level messages are allowed.

Description

This option specifies the maximum number of errors allowed before compilation stops. It indicates the maximum number of error-level or fatal-level compiler errors allowed for a file specified on the command line.

If you specify -no-diag-error-limit (Linux OS and OS X) or /Qdiag-error-limit- (Windows OS) on the command line, there is no limit on the number of errors that are allowed.

If the maximum number of errors is reached, a warning message is issued and the next file (if any) on the command line is compiled.

Alternate Options

Linux and OS X: -wn (this is a deprecated option)

Windows: /Qwn (this is a deprecated option)


Submit feedback on this help topic