Skip to main content

IAR Embedded Workbench for Arm 10.10.x

‑‑warn_about_missing_field_initializers

In this section:
Syntax
‑‑warn_about_missing_field_initializers
Description

Use this option to make the compiler warn if the initializer for a structure does not provide explicit initializers for all fields in the structure.

No warning is emitted for the universal zero initializer { 0 }, or—in C++—for the empty initializer {}.

In C, initializers that use one or more designated initializers are not checked.

Caution

This option is not available in the IDE.