Initializes stack local variables to an unusual value to aid error detection.
Windows: Data
> Initialize Local Variables to NaN
Linux: None
Mac OS: None
IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture
Linux and Mac OS: | -ftrapuv |
Windows: | /Qtrapuv |
None
OFF | The compiler does not initialize local variables. |
This option initializes stack local variables to an unusual value to aid error detection. Normally, these local variables should be initialized in the application.
The option sets any uninitialized local variables that are allocated on the stack to a value that is typically interpreted as a very large integer or an invalid address. References to these variables are then likely to cause run-time errors that can help you detect coding errors.
This option sets option -g (Linux and Mac OS) and /Zi or /Z7 (Windows).
None
g, Zi, Z7 compiler option