Skip to main content

IAR Embedded Workbench for Arm 9.70.x

-w

In this section:
Syntax
-w[+|-|+n|-n|+m-n|-m-n][s] 
Parameters

No parameter

Disables all warnings.

+

Enables all warnings.

-

Disables all warnings.

+n

Enables just warning n.

-n

Disables just warning n.

+m-n

Enables warnings m to n.

-m-n

Disables warnings m to n.

s

Generates the exit code 1 if a warning message is produced. By default, warnings generate exit code 0.

Description

By default, the assembler displays a warning message when it detects an element of the source code which is legal in a syntactical sense, but might contain a programming error.

Use this option to disable all warnings, a single warning, or a range of warnings.

Note

The -w option can only be used once on the command line.

Example

To disable just warning 0 (unreferenced label), use this command:

iasmarm prog -w-0 

To disable warnings 0 to 8, use this command:

iasmarm prog -w-0-8 
See also

Assembler diagnostics.

To set related options, select:

Caution

Project>Options>Assembler>Diagnostics