Developer Guide and Reference

Contents

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.
Alternate Options
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same