User and Reference Guide for the Intel® C++ Compiler 14.0

check-uninit

Determines whether checking occurs for uninitialized variables. This is a deprecated option. The replacement option is -check=uninit.

Syntax

Linux OS and OS X:

-check-uninit

-no-check-uninit

Windows OS:

None

Arguments

None

Default

-no-check-uninit

No checking occurs for uninitialized variables.

Description

This option determines whether checking occurs for uninitialized variables. Option -check-uninit enables this checking.

If a variable is read before it is written, a run-time error routine will be called.

Run-time checking of undefined variables is only implemented on local, scalar variables. It is not implemented on dynamically allocated variables, extern variables or static variables. It is not implemented on structs, classes, unions or arrays.

IDE Equivalent

Windows: None

Linux: Runtime > Check Uninitialized Variables

OS X: Runtime > Check Uninitialized Variables

Alternate Options

Linux and OS X: -check=uninit

Windows: /check:uninit

See Also


Submit feedback on this help topic