You copied the Doc URL to your clipboard.

--extended_initializers, --no_extended_initializers

These options enable and disable 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.

Was this page helpful? Yes No