8.81 --extended_initializers, --no_extended_initializers

Enables and disables the use of extended constant initializers even when compiling with --strict or --strict_warnings.

When certain nonportable but widely supported constant initializers such as the cast of an address to an integral type are used, --extended_initializers causes the compiler to produce the same general warning concerning constant initializers that it normally produces in nonstrict mode, rather than specific errors stating that the expression must have a constant value or have arithmetic type.


The default is --no_extended_initializers when compiling with --strict or --strict_warnings.

The default is --extended_initializers when compiling in nonstrict mode.

Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.