Skip to main content

IAR Embedded Workbench for RISC-V 3.40

‑‑warnings_are_errors

In this section:
Syntax
‑‑warnings_are_errors 
Description

Use this option to make the assembler treat all warnings as errors. If the assembler encounters an error, no object code is generated.

If you want to keep some warnings, use this option in combination with the option ‑‑diag_warning. First make all warnings become treated as errors and then reset the ones that should still be treated as warnings, for example:

‑‑diag_warning=As001
See also

‑‑diag_warning.

Caution

Project>Options>Assembler >Diagnostics>Treat all warnings as errors