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

Wnon-virtual-dtor

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

Syntax

Linux OS and OS X:

-Wnon-virtual-dtor

Windows OS:

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.

IDE Equivalent

Windows: None

Linux: None

OS X: Diagnostics > Report Non-Virtual Destructor

Alternate Options

None


Submit feedback on this help topic