Intel® C++ Compiler Classic Developer Guide and Reference
Visible to Intel only — GUID: GUID-071BDEE7-7ED6-4D97-9E03-C83C349419E6
Visible to Intel only — GUID: GUID-071BDEE7-7ED6-4D97-9E03-C83C349419E6
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 and macOS: |
-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.
IDE Equivalent
Visual Studio: None
Eclipse: None
Xcode: Diagnostics > Report Non-Virtual Destructor
Alternate Options
None