Intel® C++ Compiler 16.0 User and Reference Guide

check-uninit

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

Syntax

Linux and OS X:

-check-uninit

-no-check-uninit

Windows:

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

Visual Studio: None

Eclipse: Runtime > Check Uninitialized Variables

Xcode: Runtime > Check Uninitialized Variables

Alternate Options

Linux and OS X: -check=uninit

Windows: /check:uninit

See Also