Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Wshadow

Determines whether a warning is issued when a variable declaration hides a previous declaration.

Syntax

Linux:

-Wshadow

-Wno-shadow

macOS:

-Wshadow

-Wno-shadow

Windows:

None

Arguments

None

Default

-Wno-shadow

No warning is issued when a variable declaration hides a previous declaration.

Description

This option determines whether a warning is issued when a variable declaration hides a previous declaration. Same as -ww1599.

IDE Equivalent

None

Alternate Options

None