-truncated_address_initializer [V3.01.00 or later]


< Compile Options / Source Options >

[Format]

-truncated_address_initializer

[Description]

-

The warning message W0520069 is output instead of error E0520069 in response to detection of a code that initializes a 1-byte type or 2-byte type external variable or static variable by an address value. This is only applicable to C-language source files.

[Remarks]

-

The upper bytes of an address are truncated. Therefore, the original address value will not be retained when the upper bytes are not 0.

-

If casting into 1-byte or 2-byte type is followed by casting into a larger type, an error will occur.

-

If the variable to be initialized is a bit field member, an error will occur.

-

This option is invalid when code is in the C++ language or Embedded C++ language.