-initstatic / -noinitstatic

Determines whether the compiler initializes static variables without an INITIAL attribute and without a NOINIT attribute.

Syntax

-initstatic
-noinitstatic

Behavior

-initstatic
The compiler initializes static variables without an INITIAL attribute and without a NOINIT attribute. This option acts like -initauto, except for static variables.
-noinitstatic
The compiler does not initialize static variables without an INITIAL attribute and without a NOINIT attribute.

Default

-noinitstatic

Comments

Programs having data items that are not explicitly initialized before first use are not considered to be technically correct.