Intel® C++ Compiler XE 13.1 User and Reference Guides

Wnon-virtual-dtor

Tells the compiler to issue a warning when a class appears to be polymorphic, yet it declares a non-virtual one.

IDE Equivalent

Windows: None

Linux: None

OS X: Diagnostics > Report Non-Virtual Destructor

Architectures

All

Syntax

Linux and OS X:

-Wnon-virtual-dtor

Windows:

None

Arguments

None

Default

OFF

The compiler does not issue a warning.

Description

Tells the compiler to issue a warning when a class appears to be polymorphic, yet it declares a non-virtual one. This option is supported in C++ only.

Alternate Options

None


Submit feedback on this help topic