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

Wunused-variable

Determines whether a warning is issued if a local or non-constant static variable is unused after being declared.

Syntax

Linux OS and OS X:

-Wunused-variable

-Wno-unused-variable

Windows OS:

None

Arguments

None

Default

-Wno-unused-variable

No warning is issued if a local or non-constant static variable is unused after being declared.

Description

This option determines whether a warning is issued if a local or non-constant static variable is unused after being declared.

IDE Equivalent

None

Alternate Options

None


Submit feedback on this help topic