# wn, Qwn

Controls the number of errors displayed before compilation stops. This is a deprecated option. The replacement option is [Q]diag-error-limit.

## Syntax

Linux and macOS: | -wn n

Windows: | /Qwn n

## Arguments

n | Is the number of errors to display.

## Default

100 | The compiler displays a maximum of 100 errors before aborting compilation.

## Description

This option controls the number of errors displayed before compilation stops.

## IDE Equivalent

Visual Studio: Diagnostics > Error Limit

Eclipse: Compilation Diagnostics > Set Error Limit

Xcode: Diagnostics > Error Limit

## Alternate Options

Linux and macOS*: -diag-error-limit

Windows: /Qdiag-error-limit

Parent topic: Compiler Diagnostic Options