Skip to main content

IAR Embedded Workbench for RISC-V 3.40

‑‑diag_error

In this section:
Syntax
‑‑diag_error=tag[,tag,...]
Parameters

tag

The number of a diagnostic message, for example, the message number Pe117

Description

Use this option to reclassify certain diagnostic messages as errors. An error indicates a violation of the C or C++ language rules, of such severity that object code will not be generated. The exit code will be non-zero. This option may be used more than once on the command line.

Caution

Project>Options>C/C++ Compiler>Diagnostics>Treat these as errors