# diag-once, Qdiag-once

Tells the compiler to issue one or more diagnostic messages only once.

## Syntax

Linux: | -diag-once id[,id,...]

macOS: | -diag-once id[,id,...]

Windows: | /Qdiag-once:id[,id,...]

## Arguments

id | Is the ID number of the diagnostic message. If you specify more than one message number, they must be separated by commas. There can be no intervening white space between each id.

## Default

OFF | The compiler issues certain diagnostic messages by default.

## Description

This option tells the compiler to issue one or more diagnostic messages only once.

## IDE Equivalent

None

## Alternate Options

Linux: -wo (this is a deprecated option)

Windows: /Qwo (this is a deprecated option)

Parent topic: Compiler Diagnostic Options